From: Pierre Ossman Date: Thu, 9 Jun 2011 08:33:29 +0000 (+0000) Subject: We have no cursor initially, and never if the server doesn't support local X-Git-Tag: v1.1.90~302 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1f1f6fdcc1090b94a364b5e0b87129f51b19eb52;p=tigervnc.git We have no cursor initially, and never if the server doesn't support local 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 --- diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx index 5ca9f0e0..14feaf88 100644 --- a/vncviewer/Viewport.cxx +++ b/vncviewer/Viewport.cxx @@ -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;