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>
Thu, 15 Oct 2015 00:19:39 +0000 (20:19 -0400)
- Issues with SavingDataBox creating a DropBox

ecere/src/gui/drivers/Win32Interface.ec

index 9037578..a68e6e8 100644 (file)
@@ -535,6 +535,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);