summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-10-31 08:10:51 +0100
committerMikael Magnusson <mikachu@comhem.se>2007-10-31 08:10:59 +0100
commitdc6564619fdc9940a3d9db8528483c27f6bcb894 (patch)
tree7299c4778177dcb5bc78c5121f93b35bddbbac73 /openbox/screen.c
parent70689e109332341b17ee2d986c26940e4bc50565 (diff)
Try to fix the popup only showing up on monitor 0.
screen_find_monitor() should perhaps contain that big hunk of logic, I don't know if anything will break now that it returns screen_num_monitors sometimes. We'll see!
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 9ebeffee..a8da15c0 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -1510,7 +1510,7 @@ Rect* screen_area(guint desktop, guint head, Rect *search)
guint screen_find_monitor(Rect *search)
{
guint i;
- guint most = 0;
+ guint most = screen_num_monitors;
guint mostv = 0;
for (i = 0; i < screen_num_monitors; ++i) {