aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx3
1 files changed, 2 insertions, 1 deletions
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;