diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2011-05-10 16:03:33 +0200 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2011-08-01 11:52:31 -0400 |
| commit | 6ad5f085fa5a38ab8373769cac5cd52839d0a7a5 (patch) | |
| tree | 549a29cb7c378e8f855d96c5298ce8e0d0e89e4d /openbox/screen.c | |
| parent | cc4e44e8376f5b76cb23f8cd642f32e0e41b9150 (diff) | |
Fix menu placement to avoid dead xinerama areas, possibly break other stuff
Use screen_find_monitor(area) instead of screen_find_monitor_point(
topleft corner) in order to find a better monitor when the menu isn't
opening with the mouse cursor in the top left corner.
I made screen_find_monitor return the primary screen when it failed to
find a monitor containing the rect, instead of the total area, no idea
what behaviour this will change but I doubt it will be worse.
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index e0277ede..d368cab6 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -1652,7 +1652,7 @@ guint screen_find_monitor(const Rect *search) } } } - return most; + return most < screen_num_monitors ? most : screen_monitor_primary(FALSE); } const Rect* screen_physical_area_all_monitors(void) |
