mirror of
https://github.com/brl/mutter.git
synced 2025-06-27 23:43:04 +00:00
1da239c83c4ed2e3a554a750819fa28e9e2f05e4

Put the conditions for enabling a pointer constraint in a helper function, and use that in both maybe_enable() and maybe_remove(). The constraint region checking is still only done in maybe_enable() however. This changes the conditions for maybe disabling the constraint on focus change and other trigger points, namely it makes constraints by Xwayland not disable when they shouldn't due to the constraining window being an override-redirect window. https://bugzilla.gnome.org/show_bug.cgi?id=771859
…
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%