--- mintv/mintv.cpp 2003/03/21 14:59:19 1.6 +++ mintv/mintv.cpp 2003/09/24 16:35:16 1.7 @@ -463,8 +463,6 @@ port_found: NULL ); XtRealizeWidget(app_shell); - Cursor null_cursor = XCreateFontCursor(dpy, XC_left_ptr); - XDefineCursor(dpy, XtWindow(app_shell), null_cursor); XtVaSetValues(app_shell, XtNtitle, "mintv", XtNinput, True, @@ -473,6 +471,16 @@ port_found: XSetWMProtocols(dpy, XtWindow(app_shell), &wm, 1); gc = XCreateGC(dpy, XtWindow(video), 0, NULL); + // Hide cursor + Colormap cmap = DefaultColormap(dpy, DefaultScreen(dpy)); + XColor black; + XParseColor(dpy, cmap, "#000000", &black); + XAllocColor(dpy, cmap, &black); + static char null_data[] = {0, 0, 0, 0, 0, 0, 0, 0}; + Pixmap null_pixmap = XCreateBitmapFromData(dpy, XtWindow(video), null_data, 8, 8); + Cursor null_cursor = XCreatePixmapCursor(dpy, null_pixmap, null_pixmap, &black, &black, 0, 0); + XDefineCursor(dpy, XtWindow(video), null_cursor); + // Set image format unsigned format = XV_FORMAT;