[gnome-shell] shell-global: Fix get_focus_monitor returning the incorrect screen
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell-global: Fix get_focus_monitor returning the incorrect screen
- Date: Thu, 25 Mar 2010 21:04:10 +0000 (UTC)
commit d173f9e19debbadf693c86c4f0c3291760c88458
Author: Adel Gadllah <adel gadllah gmail com>
Date: Thu Mar 25 21:14:54 2010 +0100
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
src/shell-global.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-global.c b/src/shell-global.c
index 2cee51e..b3a87b8 100644
--- a/src/shell-global.c
+++ b/src/shell-global.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]