From 14b781929eee82703fb01e91e2c7e8a63dd08c7b Mon Sep 17 00:00:00 2001 From: akir Date: Thu, 28 Oct 2004 19:13:30 +0000 Subject: fix 1052095, windowmenu doesnt close when tabs are changed (closed,new attached or dragged around) --- src/Window.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index 88d12b0..ccf0748 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.304 2004/10/21 10:38:25 akir Exp $ +// $Id: Window.cc,v 1.305 2004/10/28 19:13:30 akir Exp $ #include "Window.hh" @@ -622,6 +622,8 @@ void FluxboxWindow::attachClient(WinClient &client) { if (client.m_win == this) return; + menu().hide(); + // reparent client win to this frame frame().setClientWindow(client); FbTk::EventManager &evm = *FbTk::EventManager::instance(); @@ -813,6 +815,8 @@ bool FluxboxWindow::removeClient(WinClient &client) { setCurrentClient(*next_client, false); } + menu().hide(); + m_clientlist.remove(&client); if (m_client == &client) { @@ -2662,6 +2666,8 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) { m_last_move_x, m_last_move_y, active_button.width(), active_button.height()); + + menu().hide(); } else { // we already grabed and started to drag'n'drop tab // so we update drag'n'drop-rectangle -- cgit v0.11.2