diff options
author | markt <markt> | 2007-06-03 20:37:10 (GMT) |
---|---|---|
committer | markt <markt> | 2007-06-03 20:37:10 (GMT) |
commit | 2f2af3291abe4395aa488eaa7572034e263e92d3 (patch) | |
tree | 9c1f97b55f641961bf57e7b07b93a3620009a0ed /src | |
parent | a01f5143e2a2ba612628963b844ad6596854c4be (diff) | |
download | fluxbox-2f2af3291abe4395aa488eaa7572034e263e92d3.zip fluxbox-2f2af3291abe4395aa488eaa7572034e263e92d3.tar.bz2 |
deiconify windows when auto-grouped with new window, when using focusnew
Diffstat (limited to 'src')
-rw-r--r-- | src/FbWinFrame.cc | 3 | ||||
-rw-r--r-- | src/Window.cc | 5 |
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 | } |