[Buildroot] [PATCH] Option to disable cursor in X
Michel Wilson
michel at crondor.net
Mon Sep 8 09:31:07 UTC 2008
Hi,
I'm developing a settop-box type of device, and I'm using X for output. Having
a mouse cursor displayed is not so nice, therefore I tried disabling it. I
couldn't get a transparent cursor theme to work, and I discovered a simple
configure-time option for the X server to disable the root cursor by default.
My guess is that I'm not the only one wanting to disable the cursor, thus, a
simple patch adding a configure-time option to do so.
Michel.
Index: package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
===================================================================
--- package/x11r7/xserver_xorg-server/xserver_xorg-server.mk (revision 23359)
+++ package/x11r7/xserver_xorg-server/xserver_xorg-server.mk (working copy)
@@ -24,6 +24,12 @@
XSERVER_XORG_ENABLE_KDRIVE:=--disable-kdrive --disable-xfbdev
endif
+ifeq ($(strip $(BR2_PACKAGE_XSERVER_XORG_SERVER_NULL_CURSOR)),y)
+XSERVER_XORG_NULL_CURSOR:=--enable-null-root-cursor
+else
+XSERVER_XORG_NULL_CURSOR:=--disable-null-root-cursor
+endif
+
XSERVER_XORG_SERVER_DEPENDENCIES = freetype xutil_util-macros xlib_libXfont
libdrm xlib_libxkbui \
xproto_compositeproto xproto_damageproto xproto_fixesproto \
xproto_glproto xproto_kbproto xproto_randrproto freetype \
@@ -42,6 +48,7 @@
--enable-freetype $(XSERVER_XORG_ENABLE_MODULAR) \
--disable-config-hal $(XSERVER_XORG_MESA_DIR) \
--disable-xnest --disable-xephyr --disable-xvfb \
+ $(XSERVER_XORG_NULL_CURSOR)
CFLAGS="-I$(STAGING_DIR)/usr/include/pixman-1"
XSERVER_XORG_SERVER_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) install
install-data
Index: package/x11r7/xserver_xorg-server/Config.in
===================================================================
--- package/x11r7/xserver_xorg-server/Config.in (revision 23359)
+++ package/x11r7/xserver_xorg-server/Config.in (working copy)
@@ -52,3 +52,9 @@
help
xorg-server 1.4
No description available
+
+config BR2_PACKAGE_XSERVER_XORG_SERVER_NULL_CURSOR
+ bool "Null root cursor"
+ depends on BR2_PACKAGE_XSERVER_XORG_SERVER
+ help
+ Don't display root cursor.
--
Michel Wilson michel at crondor.net
PGP key ID 0xD2CB4B7E
More information about the buildroot
mailing list