Skip to content

Commit

Permalink
AddWindow: set monitor for global screen
Browse files Browse the repository at this point in the history
If `DesktopConfiguration` is `global`, set the monitor that the window
is on.  Even though desktops aren't per-monitor, if this configuration
option changes, then we won't need to recalculate the screen again.
  • Loading branch information
ThomasAdam committed Apr 29, 2020
1 parent 7d5737e commit 6a0dcd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fvwm/add_window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2567,6 +2567,8 @@ FvwmWindow *AddWindow(
{
rectangle attr_g;

UPDATE_FVWM_SCREEN(fw);

if (IS_SHADED(fw))
{
state_args.do_shade = 1;
Expand Down

0 comments on commit 6a0dcd6

Please sign in to comment.