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
This commit is contained in:
Adam Dingle 2011-04-21 06:59:26 -07:00 committed by Adel Gadllah
parent 76fce94b66
commit a87f51487e

View File

@ -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);
}
/**