-
Notifications
You must be signed in to change notification settings - Fork 65
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
Fixed interface not opening on Hyprland #188
base: master
Are you sure you want to change the base?
Conversation
I just noticed this change causes problems with popups :( Ill keep trying to get this to work tho since I really like this debugger |
I think Ive fixed my fix, tho as a Wayland enjoyer my understanding of X11 does not suffice to explain why it works. |
luigi2.h
Outdated
window->window = XCreateSimpleWindow(ui.display, DefaultRootWindow(ui.display), 0, 0, width, height, 1, 0, 0); | ||
if (flags & UI_WINDOW_MENU) { | ||
XSetWindowAttributes attributes = {}; | ||
attributes.override_redirect = flags & UI_WINDOW_MENU; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe: attributes.override_redirect = True;
I'm wondering if the difference is that you're setting the I'd be curious to know if the following works as well (I can't try since unfortunately I can't install
|
doesn't help :( |
Weird. It's gotta be the |
didnt help either, I think we should just write this off as a weird xwayland bug |
Well thanks for checking anyways! |
I am not 100% sure what the parameters that were passed to XCreateWindow before were supposed to do, however I found that switching to XCreateSimpleWindow resolved the problem for me. I also tested the fix on DWM, Openbox and Sway, where it continued working. I might have created some obscure regression by removing the extended parameters, but this seems to be working well. However the person that wrote the original code may have a good reason for choosing XCreateWindow that Im not aware of.
I tested on Arch with recent versions of all the mentioned compositors with an RTX 2060