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

doesnt work on wayland #28

Open
xyangst opened this issue Dec 13, 2023 · 6 comments
Open

doesnt work on wayland #28

xyangst opened this issue Dec 13, 2023 · 6 comments

Comments

@xyangst
Copy link

xyangst commented Dec 13, 2023

this crate does not work on wayland..
image

@fdidron
Copy link

fdidron commented Mar 5, 2024

Do you have xwayland installed ? This library interfaces with xcb, Xwayland should give you a compatibility layer there.

@TukanDev
Copy link

TukanDev commented May 20, 2024

Do you have xwayland installed ? This library interfaces with xcb, Xwayland should give you a compatibility layer there.

I have same problem here i have xwayland installed and i get same error when i try to locate my dolphin window in focus or anything that is not using xwayland itself (example it works on discord, jetbrains apps...) but anything outside, it cant find. I do not know what is happening except that i have xwayland and it does not detect anything that is not running under xwayland at all as already mentioned unless both OP and I are missing some dependacy on our system besides normal xwayland package...

@ShayBox
Copy link

ShayBox commented Oct 5, 2024

Yeah, looks like this can't detect wayland programs, only xwayland ones. Maybe this is possible with a portal?

There's an extension which could be adopted, but not a lot of compositors support it.
https://github.com/activitywatch/aw-watcher-window-wayland

@TukanDev
Copy link

TukanDev commented Oct 5, 2024

Yeah, looks like this can't detect wayland programs, only xwayland ones. Maybe this is possible with a portal?

There's an extension which could be adopted, but not a lot of compositors support it. https://github.com/activitywatch/aw-watcher-window-wayland

Im suprised wayland itself still does not seem to have a protocol for this.... even if it would be under ext category of them (atleast as far as i know it does not have any standard protocol) while compositors themself might have one for their use... Would be annoying to implement for every single one but most common ones should not be an issue.

However github you linked works on like 4 of them and we dont talk about GNOME thay are special... but if it doesnt work for wlroots based compositors and stuff like upocoming cosmic and unconfirmed kwin i would much more say lets just do it raw.

@ShayBox
Copy link

ShayBox commented Oct 5, 2024

It has a protocol, but it's not adopted. Unfortunately this is how Wayland works, each compositor has to adopt the extension protocols. Kwin does not support it either, I tried. Afaik there's no way to do it without these protocols being supported, this is the security model of Wayland.

@TukanDev
Copy link

TukanDev commented Oct 5, 2024

It has a protocol, but it's not adopted. Unfortunately this is how Wayland works, each compositor has to adopt the extension protocols. Kwin does not support it either, I tried. Afaik there's no way to do it without these protocols being supported, this is the security model of Wayland.

Yea sadly guess it just wont work on wayland for now... which is sad to see as this is very useful library.

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

4 participants