aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar BanceDev 2026-02-21 19:41:31 -0500
committerGravatar BanceDev 2026-02-21 19:41:31 -0500
commitc12ce2acbfc6cb37490b628f557fe3716459bd55 (patch)
treef8100c0418a2b72bd469e5f5990d05b21eb96015 /src
parentreduced duplicity in the focus move (diff)
properly handle fullscreen windows in bsp tree
Diffstat (limited to '')
-rw-r--r--src/tilite.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tilite.c b/src/tilite.c
index 625bfc1..176e6ff 100644
--- a/src/tilite.c
+++ b/src/tilite.c
@@ -265,7 +265,8 @@ void apply_fullscreen(client_t *c, Bool on) {
c->fullscreen = True;
- XSetWindowBorderWidth(dpy, c->win, 0);
+ bsp_remove(&bsp_roots[current_ws], c);
+
XMoveResizeWindow(dpy, c->win, 0, 0, scr_width, scr_height);
c->x = 0;
@@ -279,6 +280,8 @@ void apply_fullscreen(client_t *c, Bool on) {
} else {
c->fullscreen = False;
+ bsp_insert(&bsp_roots[current_ws], NULL, c);
+
XMoveResizeWindow(dpy, c->win, c->orig_x, c->orig_y, c->orig_w,
c->orig_h);
XSetWindowBorderWidth(dpy, c->win, user_config.border_width);
@@ -976,6 +979,7 @@ void hdl_map_req(XEvent *xev) {
if (window_has_ewmh_state(w, atoms[ATOM_NET_WM_STATE_FULLSCREEN])) {
c->fullscreen = True;
c->floating = False;
+ bsp_remove(&bsp_roots[target_ws], c);
}
XMapWindow(dpy, w);