From a20401782eaa39ded2f20dbd451e58e170a045b6 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sun, 23 Jun 2013 21:18:21 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index d16b6fa38..3145851d1 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);