From 0954a0b61d067d86047d0755a64b953bd12e4c20 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 26 Jul 2006 20:20:52 +0000 Subject: fix torn menus on exec --- ChangeLog | 2 ++ src/FbTk/Menu.cc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ded81aa..3e5618e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: *06/07/26: + * Fixed torn menus so they don't close on exec items (Mark) + FbTk/Menu.cc * Updated pt_PT translations (Thanx Antonio Gomes) nls/pt_PT/Translation.m * Added resource and menu item for maximizing over external tabs (Mark) diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index e70fa76..3524ee1 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc @@ -564,7 +564,7 @@ void Menu::hide() { p = p->m_parent; p->internal_hide(); - } else // if we dont have a parent then do hide here + } else if (!m_torn) // if we dont have a parent then do hide here internal_hide(); } @@ -898,7 +898,7 @@ void Menu::buttonReleaseEvent(XButtonEvent &re) { } if (re.button == 3) - hide(); + internal_hide(); } else if (re.window == menu.frame) { -- cgit v0.11.2