ecere/gui/drivers/XInterface: Fixed debugged application staying on top of IDE (regre...
authorJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 22:00:59 +0000 (17:00 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 22:00:59 +0000 (17:00 -0500)
- Broke this trying to fix Metacity complaining about using CurrentTime here, but when
  ActivateRootWindow() is called we really need to take over, otherwise a debugged application
  stays on top of the IDE when we hit a breakpoint (there was no user interaction with the IDE,
  but it really should be activated)

ecere/src/gui/drivers/XInterface.ec

index e03890d..e7586f1 100644 (file)
@@ -3101,7 +3101,10 @@ class XInterface : Interface
                event.send_event = 1;
                event.format = 32;
                event.data.l[0] = /*0*/ 1;
-               event.data.l[1] = timeStamp;
+               // WMs will complain about using CurrentTime here, but when ActivateRootWindow() is called we really need to take over,
+               // otherwise a debugged application stays on top of the IDE when we hit a breakpoint (there was no user interaction with the IDE,
+               // but it really should be activated)
+               event.data.l[1] = CurrentTime; //timeStamp;
                event.data.l[2] = activeWindow; //guiApp.desktop.activeChild.windowHandle;
 
 #ifdef _DEBUG