summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbhinav Prasai <abhinav.prsai@gmail.com>2025-08-27 16:19:03 +0100
committerAbhinav Prasai <abhinav.prsai@gmail.com>2025-08-28 09:54:09 +0100
commit0542d960d82e74552ecbae37cf40314981e3982b (patch)
treed5ab2cba61c771e1f20bdd432c8e52413042fcfb /src
parentcf361ebd2a95ad5f62249c37223b59dc0c3e12c7 (diff)
fix fixed windows not being set
problem: removed the c->fixed/floating = True; fix: added it back
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 1dca057..c8f67d7 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -152,7 +152,6 @@ Atom _NET_WM_WINDOW_TYPE_TOOLTIP;
Atom _NET_WM_WINDOW_TYPE_NOTIFICATION;
Atom _NET_WM_STATE_MODAL;
-
Cursor cursor_normal;
Cursor cursor_move;
Cursor cursor_resize;
@@ -1144,6 +1143,11 @@ void hdl_map_req(XEvent *xev)
size_hints.min_height == size_hints.max_height) {
should_float = True;
+ c->fixed = True;
+ }
+
+ if (should_float || global_floating) {
+ c->floating = True;
}
if (window_should_start_fullscreen(w)) {