static Atom xa_motif_wm_hints;
static Atom xa_motion_event, xa_button_press_event, xa_button_release_event, xa_command_event;
static unsigned int evmask;
+static Cursor blank_cursor;
static int have_netwm_fullscr(void);
void glutInit(int *argc, char **argv)
{
#ifdef BUILD_X11
+ Pixmap blankpix = 0;
+ XColor xcol;
+
if(!(dpy = XOpenDisplay(0))) {
panic("Failed to connect to the X server\n");
}
evmask = ExposureMask | StructureNotifyMask;
+ if((blankpix = XCreateBitmapFromData(dpy, root, (char*)&blankpix, 1, 1))) {
+ blank_cursor = XCreatePixmapCursor(dpy, blankpix, blankpix, &xcol, &xcol, 0, 0);
+ XFreePixmap(dpy, blankpix);
+ }
+
#endif
#ifdef BUILD_WIN32
WNDCLASSEX wc = {0};
case GLUT_CURSOR_INHERIT:
break;
case GLUT_CURSOR_NONE:
- /* TODO */
+ cur = blank_cursor;
+ break;
default:
return;
}