shell-global: Fix get_focus_monitor returning the incorrect screen

When the window's top-left corner is the same as the monitor's top-left
corner the check in shell_global_get_focus_monitor fails to detect that.

Use <= rather than < to fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=613944
This commit is contained in:
Adel Gadllah 2010-03-25 21:14:54 +01:00
parent f53bf17331
commit d173f9e19d

View File

@ -1144,7 +1144,7 @@ shell_global_get_focus_monitor (ShellGlobal *global)
{
meta_screen_get_monitor_geometry (screen, i, &rect);
if (rect.x < wrect.x && rect.y < wrect.y &&
if (rect.x <= wrect.x && rect.y <= wrect.y &&
rect.x + rect.width > wrect.x &&
rect.y + rect.height > wrect.y)
return g_boxed_copy (GDK_TYPE_RECTANGLE, &rect);