summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc4
-rw-r--r--src/Workspace.cc6
2 files changed, 8 insertions, 2 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 99e88d6..1c69eda 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1465,6 +1465,10 @@ FluxboxWindow *BScreen::createWindow(Window client) {
1465 delete win; 1465 delete win;
1466 return 0; 1466 return 0;
1467 } 1467 }
1468
1469 Workspace *workspace = getWorkspace(win->workspaceNumber());
1470 if (workspace && !Fluxbox::instance()->isStartup())
1471 workspace->checkGrouping(*win);
1468 } 1472 }
1469 } 1473 }
1470 1474
diff --git a/src/Workspace.cc b/src/Workspace.cc
index fd81e5e..888c20a 100644
--- a/src/Workspace.cc
+++ b/src/Workspace.cc
@@ -326,8 +326,10 @@ bool Workspace::checkGrouping(FluxboxWindow &win) {
326#ifdef DEBUG 326#ifdef DEBUG
327 cerr<<__FILE__<<"("<<__FUNCTION__<<"): window ("<<*wit<<") attaching window ("<<&win<<")"<<endl; 327 cerr<<__FILE__<<"("<<__FUNCTION__<<"): window ("<<*wit<<") attaching window ("<<&win<<")"<<endl;
328#endif // DEBUG 328#endif // DEBUG
329 (*wit)->attachClient(win.winClient()); 329 WinClient &client = win.winClient();
330 (*wit)->raise(); 330 (*wit)->attachClient(client);
331 if (client.screen().focusControl().focusNew())
332 (*wit)->setCurrentClient(client);
331 return true; // grouping done 333 return true; // grouping done
332 334
333 } 335 }