mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -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);
|
XF86DGADirectVideo(_display, _screen, XF86DGADirectMouse);
|
||||||
|
|
||||||
_properties.set_mouse_mode(WindowProperties::M_relative);
|
_properties.set_mouse_mode(WindowProperties::M_relative);
|
||||||
|
properties.clear_mouse_mode();
|
||||||
_dga_mouse_enabled = true;
|
_dga_mouse_enabled = true;
|
||||||
|
|
||||||
// Get the real mouse position, so we can add/subtract
|
// Get the real mouse position, so we can add/subtract
|
||||||
@ -762,12 +763,7 @@ set_properties_now(WindowProperties &properties) {
|
|||||||
_dga_mouse_enabled = false;
|
_dga_mouse_enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
// can't change
|
|
||||||
properties.clear_mouse_mode();
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WindowProperties::M_confined:
|
case WindowProperties::M_confined:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user