diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-06-14 13:36:57 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-06-14 13:36:57 +0000 |
commit | a4f0f181b3ed0a0906083c453632e39e19472135 (patch) | |
tree | bdb1d4c95eb72e7f6be26db3826b20c8c461f189 /vncviewer/Viewport.cxx | |
parent | db7091c0f48c5b6a4adaf1701a3a9dcf4b32daa1 (diff) | |
download | tigervnc-a4f0f181b3ed0a0906083c453632e39e19472135.tar.gz tigervnc-a4f0f181b3ed0a0906083c453632e39e19472135.zip |
Implement a more robust method to handle the keyboard grab/focus voodoo as
it didn't catch some cases on OS X.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4496 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r-- | vncviewer/Viewport.cxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 139eb9a4..ae9aa106 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -740,13 +740,6 @@ void Viewport::popupContextMenu() const Fl_Menu_Item *m; char buffer[1024]; - // FIXME: Hacky workaround for the fact that menus grab and ungrab the - // keyboard. Releasing focus here triggers some events on ungrab - // that DesktopWindow can catch and trigger some voodoo. - // See DesktopWindow::handle(). - if (window()->contains(Fl::focus())) - Fl::focus(NULL); - // Make sure the menu is reset to its initial state between goes or // it will start up highlighting the previously selected entry. contextMenu->value(-1); |