From: Jerome St-Louis Date: Thu, 20 Feb 2014 22:00:59 +0000 (-0500) Subject: ecere/gui/drivers/XInterface: Fixed debugged application staying on top of IDE (regre... X-Git-Tag: 0.44.09.9~1 X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=67e014eabd2c404cf355652492975d2379d5904d ecere/gui/drivers/XInterface: Fixed debugged application staying on top of IDE (regression) - 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) --- diff --git a/ecere/src/gui/drivers/XInterface.ec b/ecere/src/gui/drivers/XInterface.ec index e03890d..e7586f1 100644 --- a/ecere/src/gui/drivers/XInterface.ec +++ b/ecere/src/gui/drivers/XInterface.ec @@ -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