summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-06-29 13:56:36 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-06-29 13:56:36 +0100
commitd016ab80966b0f76bef2075b353c7e50729cb86c (patch)
tree45c948fcc55f33e1b0236e2b9d24956fe07716dd /src
parentcee1cc7aea5ed949fe05d1fb483b1402ced5961b (diff)
fix moving fullscreen windows disables fullscreen
moving fullscreen windows to new workspace disables fullscreen on them. just removed redundant, old code
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 302e5bc..96ac3f0 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -1660,14 +1660,8 @@ void move_to_workspace(int ws)
if (!focused || ws >= NUM_WORKSPACES || ws == current_ws) {
return;
}
-
- if (focused->fullscreen) {
- focused->fullscreen = False;
- XMoveResizeWindow(dpy, focused->win, focused->orig_x, focused->orig_y, focused->orig_w, focused->orig_h);
- XSetWindowBorderWidth(dpy, focused->win, user_config.border_width);
- }
-
XUnmapWindow(dpy, focused->win);
+
/* remove from current list */
Client **pp = &workspaces[current_ws];
while (*pp && *pp != focused) {