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
This commit is contained in:
Thomas Lübking 2016-06-28 17:33:03 +02:00 committed by Mathias Gumz
parent 0951134ced
commit 9dccccb84d

View file

@ -55,6 +55,9 @@ public:
FbTk::Menu *parent = menu();
FocusControl& focus_control = m_client.screen().focusControl();
if (WinClient *winc = dynamic_cast<WinClient*>(&m_client)) {
fbwin->setCurrentClient(*winc, false);
}
m_client.focus();
fbwin->raise();
if ((mods & ControlMask) == 0) {