diff --git a/modules/FvwmPager/x_pager.c b/modules/FvwmPager/x_pager.c index fb9eef6f2..0fd4a2dbd 100644 --- a/modules/FvwmPager/x_pager.c +++ b/modules/FvwmPager/x_pager.c @@ -631,11 +631,11 @@ void initialize_pager(void) if (xneg) { sizehints.win_gravity = NorthEastGravity; - window_x = mon->w - window_w + window_x; + window_x = monitor_get_all_widths() - window_w + window_x; } if (yneg) { - window_y = mon->h - window_h + window_y; + window_y = monitor_get_all_heights() - window_h + window_y; if(sizehints.win_gravity == NorthEastGravity) sizehints.win_gravity = SouthEastGravity; else