Manually setting X Cursor or Theme - doesn't work, no errors
I am developing a LFS/CLFS/BLFS system that I have gotten working all the way through X-windows and loading a browser which is the intended use. It has a touch screen, and will be used as a kiosk.
I started with CLFS 1.1.0, and then extended it with BLFS 6.3/svn. Code:
X version 7.2.0 1. I created a file ~/'emptycursor', with the following contents: Code:
#define nn1_width 16 Code:
xsetroot -cursor emptycursor emptycursor This works, but only while the cursor is over the background/desktop. When I move the cursor over a window, a context sensitive cursor comes back, the arrow pointer, the text symbol, etc. 2. I tried a transparent cursor theme from: http://matchbox-project.org/sources/utils/ This configures, compiles, and installs just fine. It installs to Code:
/usr/local/share/icons/xcursor-transparent/ Code:
[Icon Theme] Code:
ln -s ~/.icons/xcursor-transparent /usr/local/share/icons/xcursor-transparent 3. When I installed X, I also installed xcursor-themes-1.0.1, which includes redglass and whiteglass themes. These installed to: Code:
/usr/X11/share/icons/redglass Code:
Xcursor.theme: whiteglass 4. I tried moving the xcursor-transparent files/directories to /usr/X11/share/icons/xcursor-transparent/*, and nothing changed. I also tried moving /usr/X11/share/icons/* to a different directory all together, still no change, and still no errors. 5. The most perplexing part is I don't get error messages anywhere that I know to look. /var/log/Xorg.0.log doesn't say anything about cursors, icons, themes, etc. 6. Here is my ~/.xinitrc Code:
# Begin .xinitrc file 7. I don't want to clutter up this post with my .twmrc, but I will post it if necessary. It doesn't have any themes, cursors, it's very simple. It sets up two menus, set random placement, and that's about it. So, I am hoping that somebody can point out what I am doing incorrectly, and help me get a hidden or transparent cursor. Thank you, Paul. |
Here is how I solved my cursor problems.
Get the xcursor-transparent-theme-0.1.1.gz package. Un-pack it and change into it's source directory. Run the following commands (replace user with appropriate directory): Code:
./configure This makes a file /home/user/.icons/default/cursors/transp which is the transparent cursor. It also creates a bunch of links to this file with the names of the X-windows cursors, arrow, base_arrow_down, base_arrow_up, based_arrow_down, based_arrow_up and about 75 more. As best as I can tell X-windows' default location for cursors is ~/.icons/default/cursors, and without any other direction, it looks there first. This works to replace the cursors with a transparent cursor, and I haven't seen any cursors since. [Optional] When X first starts, the default "X" cursor shows up on the hatched background until other applications load. I also created the emptycursor file above, and added the following to my ~/.xinitrc which hides the default "X" cursor almost right away. Code:
xsetroot -cursor /home/user/.icons/default/cursors/emptycursor /home/user/.icons/default/cursors/emptycursor Hope it helps somebody in the future. |
I know the thread is old, but thank you for posting you solution to your original problem.
I tried an approach using the Xlib functions like : XDefineCursor(display, rootWindow, cursor); But applications like firefox seem to be redefining and this does not work. Do you have a dynamic solution ( on / off ) without restarting the X ? |
All times are GMT -5. The time now is 10:25 AM. |