ecere/gui/GuiApplication;X11Interface: Calling ProcessInput() once before first Displ...
authorJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 22:31:14 +0000 (07:31 +0900)
committerJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 22:33:02 +0000 (07:33 +0900)
- Fixes IDE window jumping on initial launch (more noticeable in syncrhonized mode)
- Added commented out call to XSynchronize() for testing in synchronized mode

ecere/src/gui/GuiApplication.ec
ecere/src/gui/drivers/XInterface.ec

index 8ebc5e8..74f18c2 100644 (file)
@@ -683,6 +683,7 @@ public:
          {
             int terminated = 0;
             incref desktop;
+            ProcessInput(true);
             while(desktop && interfaceDriver)
             {
                bool wait;
index ae961c6..b6d0d16 100644 (file)
@@ -1240,6 +1240,7 @@ class XInterface : Interface
 #endif
       xTerminate = false;
       xGlobalDisplay = XOpenDisplay(null);
+      // XSynchronize(xGlobalDisplay, True);
       frameExtentSupported = unknown;
 
       joystickFD[0] = open("/dev/js0", O_RDONLY);