mirror of
https://github.com/brl/mutter.git
synced 2025-02-21 15:34:11 +00:00
window: Update tile monitor before move
The actual move may involve the tile monitor, so make sure to not use an outdated value by setting it before calling move_between_rects(). https://bugzilla.gnome.org/show_bug.cgi?id=645153
This commit is contained in:
parent
0726d93e79
commit
ff0eee4331
@ -3977,6 +3977,9 @@ meta_window_move_to_monitor (MetaWindow *window,
|
|||||||
{
|
{
|
||||||
MetaRectangle old_area, new_area;
|
MetaRectangle old_area, new_area;
|
||||||
|
|
||||||
|
if (window->tile_mode != META_TILE_NONE)
|
||||||
|
window->tile_monitor_number = monitor;
|
||||||
|
|
||||||
meta_window_get_work_area_for_monitor (window,
|
meta_window_get_work_area_for_monitor (window,
|
||||||
window->monitor->number,
|
window->monitor->number,
|
||||||
&old_area);
|
&old_area);
|
||||||
@ -3998,9 +4001,6 @@ meta_window_move_to_monitor (MetaWindow *window,
|
|||||||
meta_window_move_between_rects (window, &old_area, &new_area);
|
meta_window_move_between_rects (window, &old_area, &new_area);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window->tile_mode != META_TILE_NONE)
|
|
||||||
window->tile_monitor_number = monitor;
|
|
||||||
|
|
||||||
window->preferred_output_winsys_id = window->monitor->winsys_id;
|
window->preferred_output_winsys_id = window->monitor->winsys_id;
|
||||||
|
|
||||||
if (window->fullscreen || window->override_redirect)
|
if (window->fullscreen || window->override_redirect)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user