mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
x11: respect cursor updates when in confined/relative mouse mode
This commit is contained in:
parent
3977b9c57c
commit
2347587077
@ -683,6 +683,12 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
} else {
|
} else {
|
||||||
XDefineCursor(_display, _xwindow, None);
|
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()) {
|
if (properties.has_foreground()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user