aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FbWinFrame.cc3
-rw-r--r--src/Window.cc5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index dfdcf32..a387744 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -701,7 +701,8 @@ void FbWinFrame::setClientWindow(FbTk::FbWindow &win) {
701 XChangeWindowAttributes(win.display(), win.window(), CWEventMask|CWDontPropagate, &attrib_set); 701 XChangeWindowAttributes(win.display(), win.window(), CWEventMask|CWDontPropagate, &attrib_set);
702 702
703 m_clientarea.raise(); 703 m_clientarea.raise();
704 win.show(); 704 if (isVisible())
705 win.show();
705 win.raise(); 706 win.raise();
706 m_window.showSubwindows(); 707 m_window.showSubwindows();
707 708
diff --git a/src/Window.cc b/src/Window.cc
index d2a6e34..b50ee38 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -677,8 +677,11 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) {
677 } else { 677 } else {
678 if (!focused_win) 678 if (!focused_win)
679 focused_win = screen().focusControl().lastFocusedWindow(*this); 679 focused_win = screen().focusControl().lastFocusedWindow(*this);
680 if (focused_win) 680 if (focused_win) {
681 setCurrentClient(*focused_win, false); 681 setCurrentClient(*focused_win, false);
682 if (isIconic() && m_focused)
683 deiconify();
684 }
682 } 685 }
683 frame().reconfigure(); 686 frame().reconfigure();
684} 687}