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

Godot constantly refocuses itself #740

Open
tmayoff opened this issue Dec 23, 2023 · 7 comments
Open

Godot constantly refocuses itself #740

tmayoff opened this issue Dec 23, 2023 · 7 comments
Labels
bug Undesirable behavior upstream Issue may belong to upstream application or GNOME Shell itself

Comments

@tmayoff
Copy link

tmayoff commented Dec 23, 2023

Describe the bug
When switching between windows, Godot always seems to refocus itself. This happens with the main godot editor then also when launching the game.

Godot is the only program I've experienced this with

To Reproduce
I'm not sure if it's only godot causing this but

  1. Open Window 1 (anything, firefox or something)
  2. Open Godot
  3. Switch to window 1
  4. PaperWM scrolls back to godot

Expected behavior
Should switch to Firefox and stay on firefox until keyboard shortcut/gesture to switch back

Screenshots
Screencast from 2023-12-23 09-51-20.webm

System information:
Please execute ./gather-system-info.sh in you PaperWM clone and paste the output below.

Distribution: NixOS
GNOME Shell 45.2
Display server: Wayland
PaperWM branch/tag: release
PaperWM commit: 6bead84704bf4db8fb7eb2ecd94bb1212059f7c3
Enabled extensions:
- [email protected]
- [email protected]
- blur-my-shell@aunetx
- [email protected]

Additional context
A workaround for now seems to be to fullscreen the window (like double clicking the window's topbar), but it's tedious and annoying to have to do

@tmayoff tmayoff added the bug Undesirable behavior label Dec 23, 2023
@jtaala
Copy link
Collaborator

jtaala commented Dec 24, 2023

Thanks for reporting - yep, that would be annoying.

Any other applications this is happening on?

@jtaala
Copy link
Collaborator

jtaala commented Dec 24, 2023

Lastly, how was Godot installed? (distro repo or flatpak? or some other way?) - just going to try reproduce.

@jtaala
Copy link
Collaborator

jtaala commented Dec 24, 2023

Thanks @tmayoff - I can reproduce so will dig into this soon.

@tmayoff
Copy link
Author

tmayoff commented Dec 24, 2023

You reproduced it already, but to answer the questions, seems to just be Godot that this is happening with, it was installed through nixpkgs on nixos

@jtaala
Copy link
Collaborator

jtaala commented Dec 24, 2023

Right, Godot seems to be doing some really funny stuff when it comes to focusing/defocusing (sometimes when another window gets focus, it toggles focus on godot windows).

Anyways, suspect this is an upstream godot issue, as other linux window managers are seeing this behaviour, see:

Marking as upstream for now.

@jtaala jtaala added the upstream Issue may belong to upstream application or GNOME Shell itself label Dec 24, 2023
@Lythenas
Copy link
Collaborator

I noticed some games doing the same but don't remember which exactly. I think it also depended on if it was fullscreen or not and if it was capturing the mouse or not. But I haven't had the same problem with any "normal" desktop apps.

@nicolas-yangli
Copy link

I have a similar problem with Spotify (flatpak). It randomly steals focus and PaperWM scrolls to it. A workaround is to send it to scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesirable behavior upstream Issue may belong to upstream application or GNOME Shell itself
Projects
None yet
Development

No branches or pull requests

4 participants