[Mplayer-users] Re: Hiding mouse cursor? Yeap!
heinrich at wh9.tu-dresden.de
Wed Apr 11 15:55:26 CEST 2001
On Wed, Apr 11, 2001 at 02:40:22PM -0500, Arpi wrote:
> > The short description is this: You have to install a bitmap cursor
> > with a plain black pixmap. That will make the cursor transparent.
> > If anybody is interested in making a patch for mplayer I could mail
> > him the sources. (I've got it at home so I can't attach it here
> > right now.)
> I'm interested in it!
> Preferred a patch to x11_common.c, adding a new function like
> hide_mouse_pointer() and maybe (if requires) unhide_...
I'm in the middle of thesis work .. but I'll send you the
example sources tonight. got them at home...
> Is it possible to hide mouse pointer only inside the window?
> (in windowed mode)
thats exactly how it works ... you define a cursor based on an empty
pixmap. and then you select that cursor to be used for your window.
there's also a special font under X that defines a lot of usefull
cursors. unfortunatly not the empty one.
to switch back you'll probably have to select one of those cursors.
but maybe it would be just enough to remove the custom cursor from the
window's attribues ... come to think of it ... XChangeWindowAttributes
seems to do this trick just fine by setting the cursor to "None".
X will change the look of your the cursor as soon as the cursor enters
a window. and change it back when it leaves the window. (actually your
cursor is always in a window. even the background of your display is a
window. the root window.)
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
More information about the MPlayer-users