aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-06-28 15:33:03 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-07-01 17:41:16 (GMT)
commit9dccccb84df930eca0e74a96d18b0cee36a3e216 (patch)
treef06e0f8dec18794c0b0726bb92f2d9b61dacdce7 /src
parent0951134cedd15e456e638b029497669c51bd36a7 (diff)
downloadfluxbox-9dccccb84df930eca0e74a96d18b0cee36a3e216.zip
fluxbox-9dccccb84df930eca0e74a96d18b0cee36a3e216.tar.bz2
ensure to update the current client tab from menu
the menu focuses which tries to set the current tab, but fails because the iconified client won't have the input focus (yet), so we pass it a dedicated "set this client and do not try to set input because we're going to do next anyway explicitly" call =) BUG: 997
Diffstat (limited to 'src')
-rw-r--r--src/ClientMenu.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ClientMenu.cc b/src/ClientMenu.cc
index 1a7417a..00836f0 100644
--- a/src/ClientMenu.cc
+++ b/src/ClientMenu.cc
@@ -55,6 +55,9 @@ public:
55 FbTk::Menu *parent = menu(); 55 FbTk::Menu *parent = menu();
56 FocusControl& focus_control = m_client.screen().focusControl(); 56 FocusControl& focus_control = m_client.screen().focusControl();
57 57
58 if (WinClient *winc = dynamic_cast<WinClient*>(&m_client)) {
59 fbwin->setCurrentClient(*winc, false);
60 }
58 m_client.focus(); 61 m_client.focus();
59 fbwin->raise(); 62 fbwin->raise();
60 if ((mods & ControlMask) == 0) { 63 if ((mods & ControlMask) == 0) {