From cbe3f36be25731375fc2052b103d44882e641af2 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Fri, 24 Jan 2025 22:36:35 +0000 Subject: [PATCH] ResizeMove: Make Warp imply WarpToWindow When asking for the pointer to be moved via the ResizeMove command, use the WarpToWindow command to move the pointer centrally instead, rather than the relative offset. Fixes #1160 --- fvwm/move_resize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fvwm/move_resize.c b/fvwm/move_resize.c index a493127e8..618204104 100644 --- a/fvwm/move_resize.c +++ b/fvwm/move_resize.c @@ -1529,9 +1529,9 @@ static Bool resize_move_window(F_CMD_ARGS) } if (fWarp) { - FWarpPointer( - dpy, None, None, 0, 0, 0, 0, - final_pos.x - p.x, final_pos.y - p.y); + + char *cmd = "WarpToWindow 50 50"; + execute_function_override_window(NULL, exc, cmd, NULL, 0, fw); } if (IS_MAXIMIZED(fw)) {