mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Fix X11 M_relative case when missing XF86DGA
This commit is contained in:
parent
f6841d7fc5
commit
0f5b1a8192
@ -747,6 +747,7 @@ set_properties_now(WindowProperties &properties) {
|
||||
XF86DGADirectVideo(_display, _screen, XF86DGADirectMouse);
|
||||
|
||||
_properties.set_mouse_mode(WindowProperties::M_relative);
|
||||
properties.clear_mouse_mode();
|
||||
_dga_mouse_enabled = true;
|
||||
|
||||
// Get the real mouse position, so we can add/subtract
|
||||
@ -762,12 +763,7 @@ set_properties_now(WindowProperties &properties) {
|
||||
_dga_mouse_enabled = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
// can't change
|
||||
properties.clear_mouse_mode();
|
||||
}
|
||||
break;
|
||||
|
||||
case WindowProperties::M_confined:
|
||||
|
Loading…
x
Reference in New Issue
Block a user