mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
window: Don't override tile monitor
Commit 033f0d11bf
added a fallback in case the tile monitor wasn't
set before, but didn't actually check for a previously set value.
As a result, the "fallback" is not set unconditionally, which may
differ from the expected monitor: The tile monitor is determined
by the pointer position, while the window's monitor is the one
where the biggest part of the window resides on.
https://gitlab.gnome.org/GNOME/mutter/-/issues/1389
This commit is contained in:
parent
43c6f70605
commit
64ced1632e
@ -3158,7 +3158,7 @@ meta_window_tile (MetaWindow *window,
|
||||
window->tile_monitor_number = -1;
|
||||
return;
|
||||
}
|
||||
else
|
||||
else if (window->tile_monitor_number < 0)
|
||||
{
|
||||
window->tile_monitor_number = window->monitor->number;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user