aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-06-09 08:33:29 +0000
committerPierre Ossman <ossman@cendio.se>2011-06-09 08:33:29 +0000
commit1f1f6fdcc1090b94a364b5e0b87129f51b19eb52 (patch)
treede3b9563810eb4322def80c32183ff6feb8e1443 /vncviewer/Viewport.cxx
parentf741d34b7fdbad1e94e205dd1199c26560d575ae (diff)
downloadtigervnc-1f1f6fdcc1090b94a364b5e0b87129f51b19eb52.tar.gz
tigervnc-1f1f6fdcc1090b94a364b5e0b87129f51b19eb52.zip
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
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;