Parcourir la source

use new GraphicsWindowInputDevice::focus_lost()

David Rose il y a 14 ans
Parent
commit
d1a31167f7

+ 1 - 0
panda/src/tinydisplay/tinyXGraphicsWindow.cxx

@@ -337,6 +337,7 @@ process_events() {
       break;
       break;
 
 
     case FocusOut:
     case FocusOut:
+      _input_devices[0].focus_lost();
       properties.set_foreground(false);
       properties.set_foreground(false);
       system_changed_properties(properties);
       system_changed_properties(properties);
       break;
       break;

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

@@ -388,6 +388,7 @@ process_events() {
       break;
       break;
 
 
     case FocusOut:
     case FocusOut:
+      _input_devices[0].focus_lost();
       properties.set_foreground(false);
       properties.set_foreground(false);
       system_changed_properties(properties);
       system_changed_properties(properties);
       break;
       break;