nanogui: X11 vs framebuffer


Previous by date: 11 Jul 2007 03:02:45 +0100 Re: X11 vs framebuffer, Kernel Mojo
Next by date: 11 Jul 2007 03:02:45 +0100 Re: client/server nano-x howto ??, Greg Haerr
Previous in thread: 11 Jul 2007 03:02:45 +0100 Re: X11 vs framebuffer, Kernel Mojo
Next in thread:

Subject: Re: [nanogui] X11 vs framebuffer
From: "Greg Haerr" ####@####.####
Date: 11 Jul 2007 03:02:45 +0100
Message-Id: <0da201c7c35f$7b9091d0$6401a8c0@winXP>

> The mouse pointer can be turned off in the config file (NOMOUSE = Y)
ONLY IF framebuffer support is selected (i.e. X11 = N), correct?

First, you're confusing the mouse driver with the cursor.  The
mouse driver can be turned off in the config file, which will
then automatically result in no cursor being displayed.  With
X11, the mouse and cursor are normally present.


> I assumed that X11 would have to be re-configured to turn off the mouse
pointer but that that would be an effect global to all Linux X11 apps.

Actually, that's incorrect.  See drivers/scr_x11.c::X11_open(),
an empty (invisible) X11 cursor is created with XDefineCursor.
X11 allows different cursors in every window.  Microwindows
always draws its own cursor, and instructs X11 never to.


> I'll probably have to rebuild the kernel with framebuffer support and make
the mouse pointer disappear the correct way.

No, that won't work.

To hide the cursor, add a GdHideCursor() as the last item in
nanox/srvmain.c::GsInitialize().  You might take a quick
look through this function to see how the cursor is initialized
in the first place.

Regards,

Greg


Previous by date: 11 Jul 2007 03:02:45 +0100 Re: X11 vs framebuffer, Kernel Mojo
Next by date: 11 Jul 2007 03:02:45 +0100 Re: client/server nano-x howto ??, Greg Haerr
Previous in thread: 11 Jul 2007 03:02:45 +0100 Re: X11 vs framebuffer, Kernel Mojo
Next in thread:


Powered by ezmlm-browse 0.20.