Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
Keith Packard wrote: On Tue, 2008-09-30 at 17:28 +0100, Barry Scott wrote: For example mozilla (mozembed). The -nocursor patch avoids the need to modify any app code at all to remove the unwanted cursors. Have you tried the XFixes HideCursor request yet? That disables the cursor on a specific screen. I wrote a small program that does: XFixesHideCursor( dpy, DefaultRootWindow( dpy ) ); and that does not do what my -nocursor patch does. I still see the cursor over an applications window. Are you expecting that I have to hunt down every windows on the screen and call hide on it? Also When I call: XFixesShowCursor( dpy, DefaultRootWindow( dpy ) ); I get: xfixes example XFixesQueryExtension = 1 event_base: 113 error_base: 180 XFixesQueryVersion = 1 major_version: 4 minor_version: 0 XFixesShowCursor X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 153 (XFIXES) Minor opcode of failed request: 30 () Serial number of failed request: 9 Current serial number in output stream: 11 Barry ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
Daniel Stone wrote: Can you not just ship a null cursor theme or something if your apps insist on setting a cursor? We considered that, but it is unreliable (how about hard coded cursor for exemple), need in-depth testing/validating, and as a consequence eat lot of time. On the other side, you have a 20 lines patch that is easy to apply/validate. I can live with this small patch out of tree, but there is a real need here. Olivier. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
On Tue, Sep 30, 2008 at 01:56:12AM +0300, Daniel Stone wrote: Can you not just ship a null cursor theme or something if your apps insist on setting a cursor? hmm, starting just Xserver and xterm makes it unusable, no cursor and the xterm cannot be focused. -- Lukáš Hejtmánek ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
On Tue, Sep 30, 2008 at 05:28:52PM +0100, Barry Scott wrote: Daniel Stone wrote: On Mon, Sep 29, 2008 at 11:08:04PM +0200, Olivier Guerrier wrote: * People running consumer/embedded systems who can't trust their apps not to try to change the cursors want to silently drop all cursor rendering. - patch required if deemed useful We build digital signage players that play movies, html pages, images and text. These players have no mouse or keyboard and the cursor is a visual wart. Can you not just ship a null cursor theme or something if your apps insist on setting a cursor? In our product we embed apps that it is far to painful to modify to turn off the cursor. For example mozilla (mozembed). The -nocursor patch avoids the need to modify any app code at all to remove the unwanted cursors. We are willing to work up a patch if you are willing to accept it. Sure, -reallydontrenderanycursorsever sounds fine to me. Sorry about the last patch; just completely fell off my TODO list. Cheers, Daniel signature.asc Description: Digital signature ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
Hi, On Sun, Sep 28, 2008 at 2:46 PM, Olivier Guerrier [EMAIL PROTECTED] wrote: Barry Scott wrote: We would love to have a -nocursor that got ride of the cursor from the screen added to Xorg. We have a patch to do this that we use. Maybe a little off-topic here, but I back this proposal of totally disabling cursor at X level. As already mentioned on this thread, -nocursor type behavior is the default now. There is no need for any out of tree patch. X starts up without a cursor. --Ray ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: [PATCH] Make -nocursor a runtime option to and remove the compile time NULL_ROOT_CURSOR
On Mon, Sep 29, 2008 at 11:08:04PM +0200, Olivier Guerrier wrote: Ray Strode wrote: As already mentioned on this thread, -nocursor type behavior is the default now. There is no need for any out of tree patch. X starts up without a cursor. The point (at least Barry's and mine) is not having X starting with or without a cursor. It is about _permanently_ disabling X cursor drawing, at root and application level, and even if/when application request a cursor change. Hmm, that seems a little odd. Seems like there are three camps here: * People writing display drivers (let's call them 'the minority') want a stipple and cursor. - -retro * People starting regular desktop environments want the default behaviour. (Though I have slight doubts. I'd fall back on the default cursor being a NULL cursor unless forced otherwise, and IIRC the behaviour here is to suppress cursor realisation, which means you come back to an ugly root cursor, but that's fixable.) * People running consumer/embedded systems who can't trust their apps not to try to change the cursors want to silently drop all cursor rendering. - patch required if deemed useful Can you not just ship a null cursor theme or something if your apps insist on setting a cursor? Cheers, Daniel signature.asc Description: Digital signature ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg