Browse Source

Fix X11 M_relative case when missing XF86DGA

Ed Swartz 10 years ago
parent
commit
0f5b1a8192
1 changed files with 1 additions and 5 deletions
  1. 1 5
      panda/src/x11display/x11GraphicsWindow.cxx

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

@@ -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: