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

Editor does not lose keyboard focus on linux X11 (DisplayServer regression) #68572

Closed
Abdul-AZ opened this issue Nov 12, 2022 · 7 comments
Closed

Comments

@Abdul-AZ
Copy link
Contributor

Godot version

4.0 Dev Latest (c17f17e)

System information

Archlinux 6.0.8-arch1-1 kernal, X11, Qtile

Issue description

I am Unable to type in other windows when the editor is running, keyboard events are consumed by the editor instead of the other (properly) focused window. I would guess that Godot is not dealing with the window focus lost event properly.

I am running an X11 session on arch linux and using the Qtile window manager. This could be a window manager issue but it seems to only happen on Godot 4. Here is the issue displayed in a gif.

editor_keyboard_focus_bug

This happens in the editor also, not just the startup window. I tried reproducing with Godot 3.5.1 and I was not able to I am getting the expected behavior here.
editor_keyboard_focus_godot3

Steps to reproduce

Run Godot 4 with a similar setup and try to use your keyboard on other windows when selecting a input field in godot.

Minimal reproduction project

No response

@Calinou Calinou changed the title Editor does not lose keyboard focus on linux X11 Editor does not lose keyboard focus on linux X11 (DisplayServer regression) Nov 12, 2022
@Calinou
Copy link
Member

Calinou commented Nov 12, 2022

Can you reproduce this if you start the project manager with the --single-window command line argument?

@Abdul-AZ
Copy link
Contributor Author

Yea still happens with --single-window

@Abdul-AZ
Copy link
Contributor Author

I was not able to reproduce this under KDE plasma even after I used the "Focus follows mouse" option (which should treat window focus similar to Qtile).
I also was not able to reproduce this on the i3 window manager.

Which leads me to think this is a Qtile issue and not a Godot issue and it just happened to work fine with Godot 3 but I am not exactly sure. Any thoughts on this?

@radlotus
Copy link

radlotus commented Nov 12, 2022

Just installed Qtile and I am having the exact same issue. It is tied to Qtile.

@gitacrobat
Copy link

As I mentioned in the qtile issue I don't think it is a qtile issue, as I am having a similar problem with xmonad, i.e. the godot4 window hijacking input focus.

@lihop
Copy link

lihop commented Jan 14, 2023

I agree with @gitacrobat. This seems similar to issue #68305 that occurs with XMonad.

@Calinou
Copy link
Member

Calinou commented Jan 15, 2023

Duplicate of #68305 (same cause).

@Calinou Calinou closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants