Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icewm does not recognise custom xpm mouse files #45

Closed
clemencyworld1 opened this issue Mar 30, 2021 · 8 comments
Closed

icewm does not recognise custom xpm mouse files #45

clemencyworld1 opened this issue Mar 30, 2021 · 8 comments

Comments

@clemencyworld1
Copy link

It was working before but after a reinstall i could not use my themed cursor files again. The ones I downloaded from the net works but the ones I created in gimp do not work any longer.

Running icewm from terminal using my configured theme gives this error:

**IceWM: Warning: Invalid cursor pixmap: "/home/clemency/.icewm/themes/22oz/cursors/left.xpm" contains too many unique colors
IceWM: Unknown keyword for a non-container: 'Win95Keys'.
Expected either 'key' or 'runonce' here.
IceWM: A window manager is already running, use --replace to replace it

cursors.zip

**_

I have tried removing all colours from the cursor files but still do not work.
i don't know how to create cursor files that can be recognised by icewm. But it worked before.

The cursor files I created are attached

@clemencyworld1
Copy link
Author

Sorry i attached the wrong files. I will update it soon

@clemencyworld1
Copy link
Author

cursors.zip
This one does not work

@gijsbers
Copy link
Contributor

At the moment the XPM based support for cursors only accepts mono cursors.
That is like two-colors black and white. But you can disable the XPM support
by editing config.h like follows and then recompile and reinstall and restart:

$ grep -i -e xpm -e imlib config.h
/* Define to enable imlib2 rendering. */
#define CONFIG_IMLIB2 1
/* Define to enable libxpm rendering. */
/* #define CONFIG_XPM 1 */

Then your beautiful colored cursors will work.

@clemencyworld1
Copy link
Author

i installed debian version over github version and its now working. Probably i missed something during compilation. do not know what i missed.

#Debian verion alone did not give me icesound and icewmbg.

@clemencyworld1
Copy link
Author

At the moment the XPM based support for cursors only accepts mono cursors.
That is like two-colors black and white. But you can disable the XPM support
by editing config.h like follows and then recompile and reinstall and restart:

$ grep -i -e xpm -e imlib config.h
/* Define to enable imlib2 rendering. */
#define CONFIG_IMLIB2 1
/* Define to enable libxpm rendering. */
/* #define CONFIG_XPM 1 */

Then your beautiful colored cursors will work.

Ok. I will try that

@gijsbers
Copy link
Contributor

You also need to define the hotspot in your cursor images.
That is the sensitive spot of your cursor and the center of action.
How to do that is explained in https://en.wikipedia.org/wiki/X_PixMap#XPM3.

@clemencyworld1
Copy link
Author

Yes, the cursors now show but still looks mono coloured. I think I can manage that.
Thanks

@clemencyworld1
Copy link
Author

clemencyworld1 commented Apr 1, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants