From 27d181f490fc7ec0b5d1d6612545c2acd9dd2921 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Sun, 28 Jun 2009 12:34:34 -0700 Subject: hide the menu when you click on a window --- ChangeLog | 2 ++ src/Window.cc | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index da33f82..ab151a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.1.2 *09/06/28: + * Hide the menu when you click on a window (Mark) + Window.cc * Make Raise/LowerLayer commands accept integer argument, defualt 2 (Mark) CurrentWindowCmd.cc/hh Window.cc/hh * Change default toolbar head to 1 (Mark) diff --git a/src/Window.cc b/src/Window.cc index defa6cc..d38fb8a 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2403,10 +2403,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { } else if (frame().handle() == be.window) raise(); + FbTk::Menu::hideShownMenu(); if (!m_focused && acceptsFocus() && m_click_focus) //check focus focus(); - - menu().hide(); } } -- cgit v0.11.2