mirror of
https://github.com/brl/mutter.git
synced 2025-02-19 14:44:10 +00:00

Commit 8d3e05305 ("window: Force update monitor on hot plugs") added the flag `META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE` passed to `update_monitor()` from `update_for_monitors_changed()`. However, `update_for_monitors_changed()` may choose to call another code path to `move_between_rects()` and `meta_window_move_resize_internal()` eventually. As `meta_window_move_resize_internal()` does not use the "force" flag, we may still end up in case where the window->monitor is left unchanged. To avoid that problem, add a new `MetaMoveResizeFlags` that `update_for_monitors_changed()` can use to force the monitor update from `meta_window_move_resize_internal()`. Fixes: 8d3e05305 ("window: Force update monitor on hot plugs") Closes: https://gitlab.gnome.org/GNOME/mutter/issues/189 (cherry picked from commit fa495286a1037d610051ab49f0aa1e8b20e38066) (cherry picked from commit 8eabfaaa8b9469c5bdb1d8ca44b465384e8eaa9d)
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%