[mutter/gnome-3-8] window: Reuse current pointer position for monitor checks
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-8] window: Reuse current pointer position for monitor checks
- Date: Sun, 23 Jun 2013 19:25:35 +0000 (UTC)
commit a20401782eaa39ded2f20dbd451e58e170a045b6
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Jun 23 21:18:21 2013 +0200
window: Reuse current pointer position for monitor checks
Avoid a round trip to the xserver we already have the current position
anyway. Querying from the server on every move can cause the compositor to
stall during movement.
src/core/window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index d16b6fa..3145851 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -9009,7 +9009,7 @@ update_move (MetaWindow *window,
* refers to the monitor which contains the largest part of the window,
* the latter to the one where the pointer is located.
*/
- monitor = meta_screen_get_current_monitor_info (window->screen);
+ monitor = meta_screen_get_current_monitor_info_for_pos (window->screen, x, y);
meta_window_get_work_area_for_monitor (window,
monitor->number,
&work_area);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]