Mercurial > dillo_port1.3
changeset 2120:9482fb83d185
Workaround: avoid a lingering tooltip from the Panel
author | Jorge Arellano Cid <jcid@dillo.org> |
---|---|
date | So, 10 Jul 2011 12:30:08 -0400 |
parents | 4b65c2dd3d47 |
children | 43738cf4287a |
files | src/ui.cc |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ui.cc Fr Jul 08 22:07:59 2011 -0400 +++ b/src/ui.cc So Jul 10 12:30:08 2011 -0400 @@ -785,6 +785,14 @@ int ret = 0; if (event == FL_KEYBOARD) { + /* WORKAROUND: remove the Panel's fltk-tooltip. + * Although the expose event is delivered, it has an offset. This + * extra call avoids the lingering tooltip. */ + if (Fl::event_inside(NavBar) || + (LocBar && Fl::event_inside(LocBar)) || + (MenuBar && Fl::event_inside(MenuBar))) + window()->damage(FL_DAMAGE_EXPOSE,0,0,1,1); + return 0; // Receive as shortcut } else if (event == FL_SHORTCUT) { KeysCommand_t cmd = Keys::getKeyCmd();