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 25, 2025
1 parent 67ca6c7 commit 78ea1be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fvwm/move_resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,9 +1529,8 @@ 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 78ea1be

Please sign in to comment.