Closed RealKC closed 2 years ago
Closing as the linked PR adds an example (Thanks btw!) and I figured my issue (long_length
has to be nonzero, and I believe you'll get (at most) that many values back).
Yes, after you can cast value
to u32
and use Window::new
.
I pushed a few minutes ago a change allowing to cast value to Window
directly.
Will be in the fourth beta (if any) or in 1.0
Thanks a lot!
Hello!
I'm trying to use your library to get a list of all windows on the screen, I've managed to do something like this:
However, I'm not sure how to proceed further, inspecting the
type
of the list gives meAtom("Window" ; 33)
but inspecting the length gives me0
. And I'm unsure how to get a list of windows from this either.Looking at the spec I see that the type of the propriety should be
WINDOW[]/32
, I assume that means it's an array of windows where each element is 32 bits?(Also I'm not entirely sure
r#type: ATOM_ANY
(had it existed) is necessarily correct, but that's what I found in a stackoverflow post, and changing it toATOM_WINDOW
doesn't change anything)Also my WM does support EWMH, see here (awesomewm's source code).
(I'm using
1.0.0-beta.3
from crates.io)