From 9dccccb84df930eca0e74a96d18b0cee36a3e216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 28 Jun 2016 17:33:03 +0200 Subject: 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 --- src/ClientMenu.cc | 3 +++ 1 file changed, 3 insertions(+) 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: FbTk::Menu *parent = menu(); FocusControl& focus_control = m_client.screen().focusControl(); + if (WinClient *winc = dynamic_cast(&m_client)) { + fbwin->setCurrentClient(*winc, false); + } m_client.focus(); fbwin->raise(); if ((mods & ControlMask) == 0) { -- cgit v0.11.2