Explorar o código

use new GraphicsWindowInputDevice::focus_lost()

David Rose %!s(int64=14) %!d(string=hai) anos
pai
achega
d1a31167f7

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

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

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

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