x11: respect cursor updates when in confined/relative mouse mode

This commit is contained in:
rdb 2018-01-24 19:11:48 +01:00
parent 3977b9c57c
commit 2347587077

View File

@ -683,6 +683,12 @@ set_properties_now(WindowProperties &properties) {
} else {
XDefineCursor(_display, _xwindow, None);
}
// Regrab the mouse if we changed the cursor, otherwise it won't update.
if (!properties.has_mouse_mode() &&
_properties.get_mouse_mode() != WindowProperties::M_absolute) {
properties.set_mouse_mode(_properties.get_mouse_mode());
}
}
if (properties.has_foreground()) {