From 3c4256383d4b6ed69d006ed1eaeb3c369a02ba1c Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Wed, 2 Dec 2020 21:44:44 +0000 Subject: [PATCH] FvwmPager: fix geometry string values When FvwmPager parses a geometry string with a monitor name embedded in it, such as: *FvwmPager: Geometry 100x90-0+0@MONITORNAME FvwmPager would not take into account MONITORNAME's dimensions, instead defaulting to the current monitor. This results from an incorrect use of global screen, vs specific screen. Geometry strings are treated as the global screen, so FvwmPager needs to use those values when calculating where to place its window. Fixes #310 --- modules/FvwmPager/x_pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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