From: Pierre Ossman Date: Mon, 20 Oct 2014 15:21:51 +0000 (+0200) Subject: Remove no longer functional workaround X-Git-Tag: v1.4.90~30^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4cf2d3a621ecb9918b57021bc1cee1bd016dc0aa;p=tigervnc.git Remove no longer functional workaround This workaround is no longer effective with the new system handler method of handling keyboard events. The bug has also been fixed in upstream FLTK, further making it pointless. --- diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index d30dfc2f..eb62edd6 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -387,15 +387,6 @@ int DesktopWindow::handle(int event) } // Continue processing so that the viewport also gets mouse events break; - - case FL_SHORTCUT: - // Sometimes the focus gets out of whack and we fall through to the - // shortcut dispatching. Try to make things sane again... - if (Fl::focus() == NULL) { - take_focus(); - Fl::handle(FL_KEYDOWN, this); - } - return 1; } return Fl_Window::handle(event);