diff options
| author | 2026-02-21 19:41:49 -0500 | |
|---|---|---|
| committer | 2026-02-21 19:41:49 -0500 | |
| commit | 753b1ac443369af16585aed5f5d15ee82766707c (patch) | |
| tree | 2f3e4ab718a4031ba7c2ca4c009e3417ef3e187a | |
| parent | Merge branch 'main' into personalcfg (diff) | |
| parent | properly handle fullscreen windows in bsp tree (diff) | |
Merge remote-tracking branch 'origin/main' into personalcfg
| -rw-r--r-- | src/tilite.c | 6 |
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); |
