ecere/gui/drivers/XInterface: Calling XSetInputFocus even when _NET_ACTIVE_WINDOW...
authorJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 22:36:51 +0000 (07:36 +0900)
committerJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 22:36:51 +0000 (07:36 +0900)
- Fixed file dialog title bar remaining inactive on Cinnamon after clicking Look In drop box

ecere/src/gui/drivers/XInterface.ec

index b6d0d16..7119cb9 100644 (file)
@@ -1615,10 +1615,8 @@ class XInterface : Interface
                   {
                      // Force a raise on click here to deal with confused active state preventing to bring the window up
                      if(!atomsSupported[_net_active_window] && !window.isRemote)
-                     {
                         XRaiseWindow(xGlobalDisplay, (X11Window)window.windowHandle);
-                        XSetInputFocus(xGlobalDisplay, (X11Window)window.windowHandle, RevertToPointerRoot, CurrentTime);
-                     }
+                     XSetInputFocus(xGlobalDisplay, (X11Window)window.windowHandle, RevertToPointerRoot, CurrentTime);
                      button = __ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnLeftButtonDown;
                      buttonDouble = __ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnLeftDoubleClick;
                      whichButton = 0;