Skip to content

Commit

Permalink
monitor: use g.max or g.normal directly
Browse files Browse the repository at this point in the history
When updating which monitor a window is on, don't call
get_unshaded_geometry() as the window's coordinates are already relative
to where it is.

Instead, use either the maximized frame or the normal frame.

Fixes #608
  • Loading branch information
ThomasAdam committed Dec 12, 2023
1 parent 4de50e9 commit bceff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fvwm/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ Bool update_fvwm_monitor(FvwmWindow *fw)
rectangle g;
struct monitor *mnew;

get_unshaded_geometry(fw, &g);
g = IS_MAXIMIZED(fw) ? fw->g.max : fw->g.normal;
mnew = FindScreenOfXY(g.x, g.y);

/* Avoid unnecessary updates. */
Expand Down

0 comments on commit bceff6d

Please sign in to comment.