Browse Source

x11: Fix raw mouse support with XInput2

Always use XInput2 to handle raw mouse input, instead of DGA, since we are not getting correct inputs from DGA through XInput2 events
rdb 4 years ago
parent
commit
ab7928324c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/x11display/x11GraphicsWindow.cxx

+ 1 - 1
panda/src/x11display/x11GraphicsWindow.cxx

@@ -1040,7 +1040,7 @@ set_properties_now(WindowProperties &properties) {
               GrabModeAsync, _xwindow, cursor, CurrentTime) != GrabSuccess) {
             x11display_cat.error() << "Failed to grab pointer!\n";
           } else {
-            if (x11_pipe->enable_dga_mouse()) {
+            if (!_use_xinput2 && x11_pipe->enable_dga_mouse()) {
               _dga_mouse_enabled = true;
             } else {
               _raw_mouse_enabled = _raw_mouse_enabled || x11_pipe->enable_raw_mouse();