From c7c9b8783b8a062f7e5aec377ec3107eb22968a2 Mon Sep 17 00:00:00 2001 From: Bob Vloon Date: Sun, 10 May 2026 16:23:06 +0200 Subject: [PATCH] Fix moving windows from one desktop to another. It turns out that windows disappear when being moved from one desktop to another, when the current desktop is the desktop the window is to be moved to, and, yes, the original desktop is not the current one ;) I believe this fixes that problem. --- fvwm/move_resize.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fvwm/move_resize.c b/fvwm/move_resize.c index 6007b7e81..a4ebf8aec 100644 --- a/fvwm/move_resize.c +++ b/fvwm/move_resize.c @@ -2246,7 +2246,11 @@ static void _move_window(F_CMD_ARGS, Bool do_animate, int mode) final.x = r.x; final.y = r.y; - fw->Desk = m->virtual_scr.CurrentDesk; + if (fw->Desk != m->virtual_scr.CurrentDesk) + { + fw->UpdateDesk = m->virtual_scr.CurrentDesk; + } + fw->m = m; } else