ecere/gui/drivers/Win32Interface: Fixed activation issues in OpenGL
authorJerome St-Louis <jerome@ecere.com>
Sat, 28 Mar 2015 09:14:57 +0000 (05:14 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 9 Dec 2015 23:11:30 +0000 (18:11 -0500)
- Issues with SavingDataBox creating a DropBox

ecere/src/gui/drivers/Win32Interface.ec

index b2ffe77..69fef78 100644 (file)
@@ -519,6 +519,13 @@ class Win32Interface : Interface
                      // That check causes a problem with the OpenGL driver which seems to popup a window of a different class
                      if(window.displaySystem && window.displaySystem.driver == class(OpenGLDisplayDriver))
                         windowLong = (void *)ApplicationWindow;
+                     else
+                     {
+                        Window master = window.master;
+                        Window rootWindow = master.rootWindow;
+                        if(rootWindow.displaySystem && rootWindow.displaySystem.driver == class(OpenGLDisplayDriver))
+                           windowLong = (void *)ApplicationWindow;
+                     }
 #endif
                      if(id != GetCurrentProcessId() || windowLong != (void *)ApplicationWindow)
                         window.ExternalActivate(false, true, window, null);