]> source.dussan.org Git - tigervnc.git/commitdiff
We have no cursor initially, and never if the server doesn't support local
authorPierre Ossman <ossman@cendio.se>
Thu, 9 Jun 2011 08:33:29 +0000 (08:33 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 9 Jun 2011 08:33:29 +0000 (08:33 +0000)
cursors, so make sure we don't pass a NULL pointer to FLTK.

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

vncviewer/Viewport.cxx

index 5ca9f0e0bbd2febe5778af34d8c7ca2598ad22bc..14feaf88119709e6f46a2ad829ee0c837556586d 100644 (file)
@@ -341,7 +341,8 @@ int Viewport::handle(int event)
   case FL_ENTER:
     // Yes, we would like some pointer events please!
 #ifdef HAVE_FLTK_CURSOR
-    window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
+    if (cursor)
+      window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
 #endif
     return 1;