godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
86.41k stars 19.24k forks source link

Focusing a LineEdit on Linux PopOS forcibly maximizes the window #92436

Open MewPurPur opened 1 month ago

MewPurPur commented 1 month ago

Tested versions

4.2.2, but the issue is for sure way older - I remember experiencing it in 4.1.3

System information

Godot v4.2.2.stable - Pop!_OS 22.04 LTS - X11 - GLES3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) () - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

Issue description

The title says it all. Here's a video showcasing it:

https://github.com/godotengine/godot/assets/85438892/d8077afd-27db-4f6a-a217-e2a86f2eeb4e

This behavior is inconsistent, but it happens maybe 70% of the time for me. It seems to be pre-determined: After launching the editor, it either always happens or never. Also, messing around after it happens seems to sometimes fix it, but I've found nothing consistent.

Steps to reproduce

Make your window smaller than full size and click on a LineEdit.

Minimal reproduction project (MRP)

N/A can be done in the editor

MewPurPur commented 1 month ago

Messing around with a LineEdit a bunch can fix it, but I can't find anything consistent around that either. Also, the issue exists for TextEdit too.

MewPurPur commented 1 month ago

Another discovery: This only happens when I double-click the top part of the window. Moving it around fixes the issue for the session.

4X3L82 commented 1 month ago

How did you install Godot? Did you download it from the official site or did you use flatpak? If you used flatpak, try the downloadable version.

If that doesn't help, you could try switching to Wayland and enabling it in the Godot editor settings (Editor -> Run -> Platforms -> Prefer Wayland).

MewPurPur commented 1 month ago

Official site download. The problem is that this isn't an editor-only bug, I don't personally have issues with it.

4X3L82 commented 1 month ago

The problem is that this isn't an editor-only bug

Do you mean this bug is also in other software packages?

Do you use multiple screens and have perhaps an overlapping screen layout?

MewPurPur commented 1 month ago

What I'm saying is that when testing the project with F5, the project also has the issue. I haven't tested yet if exported projects have the issue, but I don't see why they wouldn't. And I don't use multiple screens