[gnome-shell] Display dialogs on the primary monitor when no window has focus.



commit a87f51487e51b9c53b87f83ba28b99ded1a3a438
Author: Adam Dingle <adam yorba org>
Date:   Thu Apr 21 06:59:26 2011 -0700

    Display dialogs on the primary monitor when no window has focus.
    
    Before this change, we displayed dialogs on the monitor containing the
    focused window if there was any, otherwise on monitor 0.  We now use
    the primary monitor rather than monitor 0 when no window has focus.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=648305

 src/shell-global.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 29caaa9..b646c61 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -1517,8 +1517,7 @@ shell_global_get_focus_monitor (ShellGlobal  *global)
         }
     }
 
-  meta_screen_get_monitor_geometry (screen, 0, &rect);
-  return meta_rectangle_copy (&rect);
+  return shell_global_get_primary_monitor (global);
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]