mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -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
79ea9f0b0f
commit
a20401782e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user