]> source.dussan.org Git - tigervnc.git/commitdiff
Send a move event when the pointer leaves the viewport as it makes it much
authorPierre Ossman <ossman@cendio.se>
Thu, 10 Nov 2011 13:30:39 +0000 (13:30 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 10 Nov 2011 13:30:39 +0000 (13:30 +0000)
easier to hit the edge of the screen (which is a popular UI element these
days).

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4789 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index 10131c1cf443046fb69cefd5cc207c638594ab1e..0de1b8b1035b13a44318e0144915143ea99e39a1 100644 (file)
@@ -383,8 +383,7 @@ int Viewport::handle(int event)
 #ifdef HAVE_FLTK_CURSOR
     window()->cursor(FL_CURSOR_DEFAULT);
 #endif
-    return 1;
-
+    // Fall through as we want a last move event to help trigger edge stuff
   case FL_PUSH:
   case FL_RELEASE:
   case FL_DRAG: