Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Usually there's a lot of casting involved.
Can you upload code snippet on a pastebin? -
@IntrusionCM Casting? I don't have a problem with querying the properties itself that works fine, no matter the combination, just that if I read more than one time in a session, the second+ time it returns invalid values and the like.
-
@ElectroArchiver That sounds like a problem with not properly accounting the number of bytes returned?
Can you share you code, that would make it easier, as brain is matsche? -
@IntrusionCM Sure, though I did change the code to work around the problem ( opening a connection for every request ), you can of course go back in the commit history~
-
If I glanced over it correctly, this is the main point where you call XWindowGetProperty in source/native/mod.cpp
https://twiserandom.com/unix/x11/...
You might want to take a look at this...
- you need to fetch the data properly
- you need to XFree the data after fetching it -
@IntrusionCM Mhm so freeing did help, though not quite. I can now query properties multiple times in a session, though querying the same property still doesn't work. Also doing the same things twice ( 2+ sessions) after one another also doesn't work..
Related Rants
X11 question.
I'm trying to read two properties with XGetWindowProperty.
Opening a connection
Reading
Closing the connection
works, however if I read two
things in one session, it fails.
question
x11