From 1f1f6fdcc1090b94a364b5e0b87129f51b19eb52 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 9 Jun 2011 08:33:29 +0000 Subject: [PATCH] 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 --- vncviewer/Viewport.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5