Skip to content

Commit

Permalink
ResizeMove: Make Warp imply WarpToWindow
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ThomasAdam committed Jan 24, 2025
1 parent 67ca6c7 commit cbe3f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit cbe3f36

Please sign in to comment.