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

How to change property with pixmap #184

Open
C-Entropy opened this issue Apr 24, 2021 · 1 comment
Open

How to change property with pixmap #184

C-Entropy opened this issue Apr 24, 2021 · 1 comment

Comments

@C-Entropy
Copy link

C-Entropy commented Apr 24, 2021

Code in C:

XChangeProperty(disp2, root2, prop_root, XA_PIXMAP, 32, PropModeReplace, (unsigned char *) &pmap_d2, 1);

How to do this in clx?
I tried something like this:

(setf *pixmap* (xlib:create-pixmap
		:drawable *root*
		:width (xlib:drawable-width *root*)
		:height (xlib:drawable-height *root*)
		:depth (xlib:drawable-depth *root*)))
(xlib:change-property *root*
		      :_XROOTMAP_ID
		      *pixmap*
		      :pixmap
		      32
		      :mode :replace)

but apperently, *pixmap* will just not work.
Do I have to get address of pixmap? And how?

@JMC-design
Copy link
Contributor

change-property doesn't transform data for you, that's what the TRANSFORM key is for. you should use #'xlib:drawable-id as transform and 'xlib:pixmap should work as type.

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