godot icon indicating copy to clipboard operation
godot copied to clipboard

Editor window suddenly minimizes on Gnome (Linux)

Open vvvvvvitor opened this issue 1 year ago • 6 comments

Godot version

4.0

System information

Fedora 37 (Workstation), Wayland, Mesa Intel® UHD Graphics (ICL GT1), Vulkan

Issue description

The editor window automatically minimizes without my input making it unusable. Gravação de tela de 2023-03-04 00-31-09.webm

Steps to reproduce

I honestly don't know why it happens, it seems completely random but it looks like it generally happens after I go to another workspace.

Minimal reproduction project

Can happen with any project, even on the project list.

vvvvvvitor avatar Mar 04 '23 03:03 vvvvvvitor

This also happens on Pop OS! 22.04 with Pop shell as window manager on Gnome.

AntonioDell avatar Mar 04 '23 05:03 AntonioDell

Happened to me a couple of times as well, but quite randomly on PopOS! I'm not sure under what circumstances it's triggered though. I had to restart the engine.

hakro avatar Mar 04 '23 12:03 hakro

Are you using Compiz? I've had the same thing happen on Ubuntu 20.04 MATE but it's rare

Wonder if setting 'interface/editor/single_window_mode' helps any

naturally-intelligent avatar Mar 04 '23 16:03 naturally-intelligent

I'm not using Compiz on my side. Just a plain PopOS! and its version of Gnome. I recently enabled single window mode, didn't have the issue yet, but I can't conclude if it's related to that or not, since it didn't happen all the time when using multi-window mode.

hakro avatar Mar 04 '23 16:03 hakro

Are you using Compiz? I've had the same thing happen on Ubuntu 20.04 MATE but it's rare

Wonder if setting 'interface/editor/single_window_mode' helps any

Nope, just standard Fedora.

vvvvvvitor avatar Mar 04 '23 18:03 vvvvvvitor

@hakro the bug is happening for me with single window mode too.

AntonioDell avatar Mar 06 '23 12:03 AntonioDell

For me it's only happening after I minimize.

Then, when I try to restore from taskbar, it looks like it is unminimizing, but minimizes right after.

(I suspect some window managers might be minimizing Godot when you're on a different workspace.)

naturally-intelligent avatar Mar 06 '23 21:03 naturally-intelligent

Can someone check if it also happens on Xorg?

vvvvvvitor avatar Mar 15 '23 03:03 vvvvvvitor

Are you using Compiz? I've had the same thing happen on Ubuntu 20.04 MATE but it's rare

Wonder if setting 'interface/editor/single_window_mode' helps any

Also happens in Single Window Mode.

vvvvvvitor avatar Mar 15 '23 03:03 vvvvvvitor

Can someone check if it also happens on Xorg?

I'm using X11 with Ubuntu MATE 22 and it happens. It's pretty consistent for me. If I minimize Godot it gets stuck minimized forever until force-closed.

naturally-intelligent avatar Mar 15 '23 03:03 naturally-intelligent

Fedora 37/GNOME 43.3/X11/Nvidia

To me it looks like there is some issue with the window (focus) state (not specifically with how the minimized state is tracked). I can get the editor back to normal if I'm able to bring the keyboard focus to the editor window. After e.g. hitting F5 to run the game everything is back to normal. If I have the code editor open when this happens typing some characters did also work. This also happens to all open Godot 4.0 editors at the same time. This did also happen in compatibility mode using the single window switch.

Side-note: Right before this problem happens some of the keyboard shortcuts are not working anymore e.g. CTRL+S is not saving the scene and code (just typing the letter s). I think there was a regression issue which was fixed for the 4.0 release (or a later RC). Could be related, maybe not. Editor auto minimize, shortcuts sometimes not working, sluggish window dragging performance (when editor is not running in compatibility mode) - I have them all - I guess that's a bingo;)

binarysafari avatar Mar 15 '23 08:03 binarysafari

Probably a duplicate of https://github.com/godotengine/godot/issues/72728

dkaste avatar Mar 16 '23 23:03 dkaste

  • Duplicate of https://github.com/godotengine/godot/issues/72728.

Calinou avatar Mar 16 '23 23:03 Calinou

@Calinou I don't believe this is a duplicate; it still happens in Godot v4.1.1.rc1 - Fedora Linux 38 (Workstation Edition) - Vulkan (Forward+) - integrated Intel(R) Graphics (ADL GT2) () - 12th Gen Intel(R) Core(TM) i7-1280P (20 Threads).

It also does make godot literally unusable, because some windows will sometimes refuse to re-focus (they minimize as soon as they are focused). In that case, the only way out is to force kill the godot process and hope you didn't lose much work since the last save.

All godot windows are prone to this: create a new node, delete a node confirmation, etc.

hunterloftis avatar Jul 13 '23 14:07 hunterloftis

@hunterloftis See https://github.com/godotengine/godot/issues/77333.

Calinou avatar Jul 13 '23 14:07 Calinou