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

feat(anr): add xwayland support #9436

Closed
wants to merge 8 commits into from
Closed

Conversation

nnyyxxxx
Copy link
Contributor

@nnyyxxxx nnyyxxxx commented Feb 18, 2025

adds xwayland support to anr

fixes #7297

nnyyxxxx referenced this pull request Feb 18, 2025
for xdg-shell, we can ping the wm_base, and thus render an ANR dialog if an app dies

for XWayland, there probably is a similar method, but I don't know about it and don't care.
@nnyyxxxx
Copy link
Contributor Author

i haven't tested the wayland part (might wanna look into that) regardless xwayland support is finished

@nnyyxxxx nnyyxxxx marked this pull request as ready for review February 18, 2025 18:21
@Kommynct
Copy link

pretty sure this fixes #7297

@nnyyxxxx
Copy link
Contributor Author

sure, anr was already implemented for wayland all this does is add support for xwayland

if i am being honest that issue should have been closed with fb8eaba but i digress

their are probably more issues related to that one, i cba to find them right now though.

@vaxerski
Copy link
Member

I don't like this, fails the vibe check, so much code dup

@nnyyxxxx
Copy link
Contributor Author

I don't like this, fails the vibe check, so much code dup

wdym?

@nnyyxxxx
Copy link
Contributor Author

nnyyxxxx commented Feb 18, 2025

this pr avoids that lol, shared code is extracted to helper funcs etc

@nnyyxxxx
Copy link
Contributor Author

could you clarify?

@nnyyxxxx
Copy link
Contributor Author

ill draft then lol and extract more logic since you dont want to give context

@nnyyxxxx nnyyxxxx marked this pull request as draft February 18, 2025 20:51
@nnyyxxxx
Copy link
Contributor Author

just sayin it was pretty bad before as well so

@nnyyxxxx
Copy link
Contributor Author

better?

@nnyyxxxx
Copy link
Contributor Author

this is going to be aids to review

@nnyyxxxx
Copy link
Contributor Author

tbh the duplication is kinda unavoidable...

@nnyyxxxx
Copy link
Contributor Author

going to undraft, feel free to revert e195d94 if you dont like it

@nnyyxxxx nnyyxxxx marked this pull request as ready for review February 18, 2025 21:10
@nnyyxxxx
Copy link
Contributor Author

their is really no other way to do this if im being real... and tbh even if e195d94 reduces code duplication ( very minor ) i still prefer it without those changes....

@nnyyxxxx
Copy link
Contributor Author

@vaxerski
Copy link
Member

tbh I am not very convinced this is even something I am interested in. XWayland is slow, hungry, and I'd avoid sending anything more than we need over it.

There are already some event issues around xwl that cause elevated cpu usage on my laptop (thats why I have to have xwl disabled on it)

@nnyyxxxx
Copy link
Contributor Author

tbh I am not very convinced this is even something I am interested in. XWayland is slow, hungry, and I'd avoid sending anything more than we need over it.

There are already some event issues around xwl that cause elevated cpu usage on my laptop (thats why I have to have xwl disabled on it)

but the implementation isnt even bad lol, if you dont want to support xwayland on a lot of things then why have it in the first place. xd.

@nnyyxxxx
Copy link
Contributor Author

also want to resume this on the discord server? if you unban me of course :)

@nnyyxxxx
Copy link
Contributor Author

most users will want this anyways, if we stripped out a lot of the xwayland stuff and made it barebones, then the users would just want those features back. theres nothing really stopping this anyways

@vaxerski
Copy link
Member

I'll see what I can do tomorrow.

@nnyyxxxx nnyyxxxx mentioned this pull request Feb 20, 2025
6 tasks
@nnyyxxxx
Copy link
Contributor Author

I'll see what I can do tomorrow.

any updates on this

@vaxerski
Copy link
Member

yes, I had other stuff to do and didnt, I have this open for wehn I have amoment

@nnyyxxxx
Copy link
Contributor Author

yes, I had other stuff to do and didn't, I have this open for when I have a moment

ok

@vaxerski
Copy link
Member

you've messed up the code royally, I'll just rewrite it probably

@nnyyxxxx
Copy link
Contributor Author

whats wrong with it 💀

@nnyyxxxx
Copy link
Contributor Author

tested on both wayland and xwayland works pefectly,

disregard this:

i haven't tested the wayland part (might wanna look into that) regardless xwayland support is finished

@nnyyxxxx
Copy link
Contributor Author

their is no better way to do this regarding code dupe if thats what you mean

feel free to test out these changes yourself if you dont believe me :(

@nnyyxxxx
Copy link
Contributor Author

also want to resume this on the discord server? if you unban me of course :)

e

@vaxerski
Copy link
Member

you shat templates all over

also, it doesn't work on my end

@nnyyxxxx
Copy link
Contributor Author

you shat templates all over

also, it doesn't work on my end

skill issue, works perfectly fine for me

@nnyyxxxx
Copy link
Contributor Author

u dont know xwayland well enough, you probs tried triggering it wrong

@nnyyxxxx
Copy link
Contributor Author

you shat templates all over

templates are great

@nnyyxxxx
Copy link
Contributor Author

also want to resume this on the discord server? if you unban me of course :)

unban me pls @vaxerski

@nnyyxxxx
Copy link
Contributor Author

closing in favor #9456

@nnyyxxxx nnyyxxxx closed this Feb 21, 2025
@nnyyxxxx nnyyxxxx deleted the patch-5 branch February 21, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grey on "not responding" state for toplevel
3 participants