]> Dogcows Code - chaz/openbox/commitdiff
don't actually focus windows when adding them to the current workspace. this is alrea...
authorDana Jansens <danakj@orodu.net>
Tue, 13 Aug 2002 21:14:37 +0000 (21:14 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 13 Aug 2002 21:14:37 +0000 (21:14 +0000)
src/Window.cc
src/Workspace.cc

index 0b161f6ca642fb7342586ff4d64d683c7fac7d8e..c58e0b3dea0ef4f55eecbb03e8f1582d3517cfca 100644 (file)
@@ -2706,6 +2706,8 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
     break;
 
   case XA_WM_TRANSIENT_FOR: {
+    bool s = flags.stuck;
+    
     // determine if this is a transient window
     getTransientInfo();
 
@@ -2714,6 +2716,7 @@ void BlackboxWindow::propertyNotifyEvent(const XPropertyEvent *pe) {
       functions &= ~Func_Maximize;
       setAllowedActions();
       setupDecor();
+      if (flags.stuck != s) stick();
     }
 
     reconfigure();
index b03ee7b2ea0817b88253db96835d8a480c4bbc1f..11d5187ddf35512a8a9cfbc69fecff71d3f16c91 100644 (file)
@@ -101,9 +101,7 @@ void Workspace::addWindow(BlackboxWindow *w, bool place, bool sticky) {
 
     if (screen->doFocusNew() || (w->isTransient() && w->getTransientFor() &&
                                  w->getTransientFor()->isFocused())) {
-      if (id == screen->getCurrentWorkspaceID())
-        w->setInputFocus();
-      else {
+      if (id != screen->getCurrentWorkspaceID()) {
         /*
            not on the focused workspace, so the window is not going to get focus
            but if the user wants new windows focused, then it should get focus
This page took 0.033162 seconds and 4 git commands to generate.