Bug 366632

Summary: Windows not resized to maximize area if initially too large
Product: [Plasma] kwin Reporter: Matthias Fauconneau <matthias.fauconneau>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aspotashev, bugseforuns, nate, notuxius, pietro.fontana, seqularise
Priority: NOR Keywords: usability
Version: git masterFlags: mgraesslin: Wayland+
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.23
Sentry Crash Report:
Attachments: attachment-7947-0.html

Description Matthias Fauconneau 2016-08-11 12:22:26 UTC
Whenever I open a new application instance (firefox, dolphin, konsole, kwrite, ...), its main window covers the full screen going below Plasma panel.
I am not sure if it is Plasma which fails to communicate the geometry of the panels to KWin or KWin which fails to clip the window to the available non-shell area.

Reproducible: Always
Comment 1 Martin Flöser 2016-08-31 13:01:06 UTC
Just for clarification: you mean maximization and not fullscreen, right? That is click the maximize button and not using a fullscreen menu item.
Comment 2 Matthias Fauconneau 2016-08-31 13:30:58 UTC
Created attachment 100861 [details]
attachment-7947-0.html

I do not maximize or set fullscreen, the initial geometry of the window is
too large and overlaps under the Plasma panel.
Maybe the geometry of the maximized window was stored from a session
without a panel, persists and is not clipped by KWin/Wayland.

On Wed, Aug 31, 2016 at 3:01 PM, Martin Gräßlin via KDE Bugzilla <
bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=366632
>
> --- Comment #1 from Martin Gräßlin <mgraesslin@kde.org> ---
> Just for clarification: you mean maximization and not fullscreen, right?
> That
> is click the maximize button and not using a fullscreen menu item.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Martin Flöser 2016-09-02 06:13:33 UTC
Thanks for clarifying. Now I understand what you mean and yes, I have seen this as well. Not really sure how we can address it yet, but It's an important issue.
Comment 4 Martin Flöser 2016-09-14 12:10:08 UTC
Git commit e1bcda92a2f446ecfa4538e28bcc697344cef8f5 by Martin Gräßlin.
Committed on 14/09/2016 at 12:08.
Pushed by graesslin into branch 'master'.

[autotests/integration] Test case for window larger than screen

If a window gets opened which will be too large with decorations it
should get a configure event with a smaller size. This currently
doesn't happen as the test highlights.

M  +38   -0    autotests/integration/shell_client_test.cpp

http://commits.kde.org/kwin/e1bcda92a2f446ecfa4538e28bcc697344cef8f5
Comment 5 Pietro F. Fontana 2018-02-11 10:53:49 UTC
I can confirm this behaviour:
* every application previously closed in maximized window state will reopen with this problem;
* applications for which I have set a window rule to "initially maximize" don't have this behaviour, they simply appear correctly maximized.

(The second point is tested only with Firefox for which I have set this rule long time ago, I am unable to set a similar rule on other applications on Wayland, but I have tried only few minutes.)
Comment 6 Patrick Silva 2018-02-11 14:33:43 UTC
same on Arch Linux under Wayland.
When I open desktop settings window, buttons on botton are hidden behind plasma panel.
Comment 7 Alexander Mentyu 2018-09-04 15:38:09 UTC
(In reply to Dr. Chapatin from comment #6)
> same on Arch Linux under Wayland.
> When I open desktop settings window, buttons on botton are hidden behind
> plasma panel.

Can reproduce

Distribution: KDE neon Developer Edition
Kernel: 4.15.0-29-generic
Plasma: 5.13.80
Apps: 18.11.70
Qt: 5.11.1
Frameworks: 5.48.0
Graphics:
Card-1: Intel driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:5917 
Card-2: NVIDIA GM108M [GeForce 940MX] driver: nouveau v: kernel bus ID: 01:00.0 chip ID: 10de:134d 
Display: wayland server: X.Org 1.19.6 driver: modesetting,nouveau 
unloaded: fbdev,vesa alternate: nvidia compositor: kwin wayland 
resolution: 1920x1080~57Hz 
OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 18.0.5 
compat-v: 3.0 direct render: Yes
Comment 8 Nate Graham 2018-09-21 15:49:20 UTC
*** Bug 398806 has been marked as a duplicate of this bug. ***
Comment 9 Patrick Silva 2019-03-22 14:23:03 UTC
This bug persists on neon dev unstable.
Comment 10 Patrick Silva 2019-05-17 15:12:44 UTC
plasma 5.16 beta has the same bug :(

Operating System: Arch Linux 
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.0 beta3
Comment 11 Patrick Silva 2019-08-04 21:02:48 UTC
I can't reproduce this bug on Arch Linux.
If I'm not mistaken, David Edmundson recently fixed a Qt issue that caused windows to increase in size each time they opened.

Operating System: Arch Linux 
KDE Plasma Version: 5.16.4
KDE Frameworks Version: 5.60.0
Qt Version: 5.13.0
Comment 12 Patrick Silva 2021-09-04 14:07:41 UTC
This bug persists on neon unstable. When I open a 1080p video with Haruna player
on my laptop with 1366x768 screen, the seek bar on bottom of Haruna is hidden
behind Plasma panel. Also the buttons on bottom of the drkonqi helper to install
debug packages are hidden behind Plasma panel.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 13 Seqularise 2021-09-17 16:58:44 UTC
Fixed 
https://invent.kde.org/plasma/kwin/-/merge_requests/1423
Comment 14 Nate Graham 2021-09-17 17:41:44 UTC
Nice!