setMenuKey();
OptionsDialog::addCallback(handleOptions, this);
+
+ // Make sure we have an initial blank cursor set
+ setCursor(0, 0, rfb::Point(0, 0), NULL);
}
return 1;
case FL_ENTER:
- if (cursor)
- window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
+ window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
// Yes, we would like some pointer events please!
return 1;
handle(FL_FOCUS);
// Back to our proper mouse pointer.
- if ((Fl::belowmouse() == this) && cursor)
+ if (Fl::belowmouse())
window()->cursor(cursor, cursorHotspot.x, cursorHotspot.y);
if (m == NULL)
Viewport *self = (Viewport*)data;
self->setMenuKey();
+ // FIXME: Need to recheck cursor for dotWhenNoCursor
}