-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
VisualShader node window closes when main window is in focus, breaks tiling WMs #77753
Comments
Okay, so while debugging this, I think I see two issues here:
|
Enabling Single Window Mode in the Editor Settings allows me to use it properly. If anyone else runs into this issue, you can likely do the same. |
Other tiling WM issues FYI |
Is there a way to reliably detect whether a tiling WM is being used (e.g. an environment variable or the presence of a file)? We could force single-window mode in this case, so that the user doesn't have to do it manually. |
There's a couple of The best you'd be able to do is maintain a list of different environments and hardcode the default for each. But even that's difficult because some environments like GNOME and KDE have unofficial extensions that turn them into tiling WMs. I believe there's also some Windows and MacOS plugins for tiling functionality, and even some desktop environments made for VR (I have no idea how this behavior works on any of these). The safe method would be to just use single-window mode as the default (or the default for Linux) until Wayland support is better fleshed out and window types more accurately follow the XDG Shell Protocol (or whatever the issue with Xorg is). |
Can this also be replicated on i3? Otherwise I think it would be appropriate to put it in the XWayland issues tracker (yes there are enough issues to warrant one, the situation is that bad). |
Godot version
v4.0.2.stable
System information
Linux NixOS, using Sway as a tiling WM
Issue description
When using the VisualShader system, if I try to add a node using either the "Add Node..." button or right-clicking on the graph, the new menu briefly appears as a new window but instantly closes when the main window is in focus.
This especially breaks on Linux tiling window managers such as Sway or i3 (when not using floating-layout) as the main window stays focused to prevent popups from forcibly grabbing focus.
Other types of windows, such as Editor Settings, do not have this issue as they stay open even if focus switches back to the main window.
I'd like to change this behavior to prevent the window from closing if the main window is in focus.
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: