mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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.
This commit is contained in:
parent
7187206ef5
commit
5205821fb9
@ -8916,7 +8916,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);
|
||||
|
Loading…
Reference in New Issue
Block a user