Bug 486919 - Window height bigger than screen height
Summary: Window height bigger than screen height
Status: RESOLVED DUPLICATE of bug 462703
Alias: None
Product: okteta
Classification: Applications
Component: general (show other bugs)
Version: 0.26.15
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-12 13:30 UTC by Alexander Wilms
Modified: 2024-07-28 18:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Wilms 2024-05-12 13:30:24 UTC
SUMMARY
By default, the Okteta window has the dimensions 1355 x 2331 on my 2560x1440 screen. It does't matter if I start Okteta via the application menu or by opening a file in Dolphin.

STEPS TO REPRODUCE
1. Start Okteta

OBSERVED RESULT
The window extends outside the screen at the top and bottom.

EXPECTED RESULT
A normal windows size, comparable to that of e.g. System Settings.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240509
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.8-1-default (64-bit)
Graphics Platform: Wayland


ADDITIONAL INFORMATION
When one resizes the window, the dimensions aren't saved and used the next time Okteta is started.
Comment 1 TheR 2024-05-13 12:03:32 UTC
I can confirm the same.

Platform: KDE Neon. All KDE 6 updates. 

As curiosity. Okteta is showing this components:
KDE Frameworks : 5.115.0
Qt 5.15.10 (build 5.15.10)

by
TheR
Comment 2 Alexander Wilms 2024-05-13 12:43:40 UTC
On my system, Okteta's About dialog shows the following:

KDE Frameworks 
Version 5.115.0

Qt 
Version 5.15.13 (built against 5.15.13)

The wayland windowing system
Comment 3 Alexander Wilms 2024-06-14 13:42:07 UTC
Okteta now remembers the window size when opening files via Dolphin and doesn't exceed the screen size.
On the 2560x1440 screen, it opens with the dimensions 861 x 1390 when launched from Kickoff.
The about dialog shows the following:

Okteta version 0.26.15
KDE Frameworks version 5.116.0
Qt version 5.15.14 (built against 5.15.14)
Comment 4 Adam Fontenot 2024-07-23 13:39:35 UTC
I see this issue on Qt6 + Wayland, can anyone confirm?

Okteta 0.26.15

Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 5 Adam Fontenot 2024-07-23 14:37:54 UTC
I built and tried the KF6 branch: https://invent.kde.org/utilities/okteta/-/commits/work/kossebau/kf6?ref_type=heads

In this case the height of the window is limited to the height of the screen, but it still doesn't remember its size after closing under Wayland.
Comment 6 Friedrich W. H. Kossebau 2024-07-23 15:08:58 UTC
Not yet got to research the issue (as myself still not on Wayland). From what I have heard elsewhere there might be two different issues when it comes to wayland:
* Qt does not properly save & restore the state of QDockWidgets there, even more broken on Qt5
* Wayland window managers might not be too cooperative when a windows tries to restore/set the window size by itself (?)

Okteta code itself tries to rely on the abstraction API Qt & KF libraries provide over X11, Wayland (and other windowing systems/platforms). So Okteta should not do anything wrong here, also might only try to work-around things where possible (ideally avoided though and issues fixed with the actual culprits).

Someone trying to investigate this bug(s) might try with doing a simple dummy app with some QDockWidgets to reproduce the issues and perhaps find some work-around. Because at least with Qt5 any Qt-side fixes might not be something to expect to arrive soonish now to FLOSS users.

Situation is really unfortunate, I am sorry for your experiences. My rough plans hopefully will have me get to complete the current blocker porting-from-QtScript in autumn and then move Okteta finally to Qt6, perhaps even get rid of using QDockWidget (some local sketch exists). 

For now, until I get to research things, can you help with some information:

what happens with the QDockWidgets/tool views on reopening? I.e.
* are those you closed shown again?
* are they in the same location (left/right/stacked)
Comment 7 Adam Fontenot 2024-07-23 15:16:19 UTC
(In reply to Friedrich W. H. Kossebau from comment #6)
> For now, until I get to research things, can you help with some information:
> 
> what happens with the QDockWidgets/tool views on reopening? I.e.
> * are those you closed shown again?
> * are they in the same location (left/right/stacked)

On your KF6 under Wayland, the tool widgets are remembered in their open / closed state, and the location is preserved as well. When multiple tool widgets are placed under a tabbed parent, the active tab is remembered as well.
Comment 8 Paul McQuade 2024-07-28 18:45:27 UTC

*** This bug has been marked as a duplicate of bug 462703 ***