From c12ce2acbfc6cb37490b628f557fe3716459bd55 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Sat, 21 Feb 2026 19:41:31 -0500 Subject: properly handle fullscreen windows in bsp tree --- src/tilite.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/tilite.c') 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); -- cgit v1.2.3-59-g8ed1b