Bug 466716

Summary: Windows exceeding max hight
Product: [Plasma] kwin Reporter: Henning <boredsquirrel>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED LATER    
Severity: normal Flags: boredsquirrel: Wayland+
boredsquirrel: Intel+
boredsquirrel: Mesa+
boredsquirrel: nouveau-
boredsquirrel: NVIDIA-
boredsquirrel: r300g-
boredsquirrel: r600g-
Priority: NOR    
Version First Reported In: 5.27.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Henning 2023-03-02 13:12:55 UTC
SUMMARY
I have no KWin rules for Ukular. But when opening it, currently it exceeds the top of my screen often. 

bug 450022 seems similar but it seemed to be solved in between

STEPS TO REPRODUCE
1. open Okular on another bigger screen in fullscreen ?
2. close it, reopen it
3. it appears on the primary smaller screen and exceeds the top border

OBSERVED RESULT
windows dont respect the top border and exceed them. They seem to arrange that way always, even after resizing it manually.

EXPECTED RESULT
windows should never exceed screen limits

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.14-200.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 Vlad Zahorodnii 2023-03-02 13:17:39 UTC
Okular tries to restore its previous window size. On the other hand, kwin_wayland doesn't try to restrict the window size. Instead it sends the client the bounds of the work area, and the client then chooses what size it prefers. It shouldn't be the case when using Qt 6.5.