From d016ab80966b0f76bef2075b353c7e50729cb86c Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sun, 29 Jun 2025 13:56:36 +0100 Subject: fix moving fullscreen windows disables fullscreen moving fullscreen windows to new workspace disables fullscreen on them. just removed redundant, old code --- src/sxwm.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/sxwm.c') 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) { -- cgit v1.2.3