mirror of
https://github.com/brl/mutter.git
synced 2024-11-30 03:50:47 -05:00
window: Reset tile monitor number when untiling
Otherwise we'll end up trying to access the out of date state later. Fixes the following test failure backtrace: #0 _g_log_abort () #1 g_logv () #2 g_log () #3 meta_monitor_manager_get_logical_monitor_from_number () #4 meta_window_get_work_area_for_monitor () #5 meta_window_get_tile_area () #6 constrain_maximization () #7 do_all_constraints () #8 meta_window_constrain () #9 meta_window_move_resize_internal () #10 meta_window_tile () https://gitlab.gnome.org/GNOME/mutter/merge_requests/912
This commit is contained in:
parent
9ed33dc72e
commit
3df4348f23
@ -3192,7 +3192,10 @@ meta_window_tile (MetaWindow *window,
|
||||
|
||||
/* Don't do anything if no tiling is requested */
|
||||
if (window->tile_mode == META_TILE_NONE)
|
||||
return;
|
||||
{
|
||||
window->tile_monitor_number = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (window->tile_mode == META_TILE_MAXIMIZED)
|
||||
directions = META_MAXIMIZE_BOTH;
|
||||
|
Loading…
Reference in New Issue
Block a user