Bug 451684 - [WAYLAND] The window does not reset to its normal size after closing when fullscreen
Summary: [WAYLAND] The window does not reset to its normal size after closing when ful...
Status: CONFIRMED
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2022-03-19 13:25 UTC by Martin Roukala
Modified: 2022-12-07 10:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
[Current output] Screenshot of the outcome of the "Open -> Fullscreen -> Close -> Open" sequence (22.41 KB, image/png)
2022-03-19 13:25 UTC, Martin Roukala
Details
[Expected output] Screenshot of the outcome of the "Open -> Fullscreen -> Close -> Open" sequence (96.00 KB, image/png)
2022-03-19 13:27 UTC, Martin Roukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Roukala 2022-03-19 13:25:08 UTC
Created attachment 147596 [details]
[Current output] Screenshot of the outcome of the "Open -> Fullscreen -> Close -> Open" sequence

SUMMARY

Using Plasma in Wayland mode, exiting a full screen Yakuake window by closing it using F12 leads to a half-fullscreen window the next time we open. By half-fullscreen, I mean that the actual window (from kwin's perspective) will be fullscreen, but yakuake will only render as if it was not fullscreen (as expected).

I cannot reproduce this issue on X11.

STEPS TO REPRODUCE
1. Start Yakuake
2. Open Yakuake (F12)
3. Go fullscreen (F11 for me)
4. Close Yakuake's window (F12)
5. Open/close Yakuake as many times as you want (F12)

The only way to fix this half-fullscreen window is to open Yakuake (F12), exit the fullscreen mode (F11 for me), then we can open/close yakuake normally again.

OBSERVED RESULT

See attachment

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.16.15-zen1-1-zen
(available in About System)
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Comment 1 Martin Roukala 2022-03-19 13:27:33 UTC
Created attachment 147597 [details]
[Expected output] Screenshot of the outcome of the "Open -> Fullscreen -> Close -> Open" sequence

Here is what I expect to see, after re-opening Yakuake when it got closed after being fullscreen.
Comment 2 David Edmundson 2022-03-21 13:07:05 UTC
According to the wayland log, on the second reopening the window requests to go fullscreen.

This seems like a behavioural difference in the wayland QPA vs the XCB QPA, but needs more investigation as to whether it's technically wrong at that level or should be fixed yakuake side.

The kwin interaction looks right the window is reconfigured to be fullscreen, it is attaching fullscreen buffers so the window size is correct, but it seems that yakuake isn't expecting to be externally resized. That can also be reproduced on X11 with meta+ rightclick and is a definite yakuake bug.
Comment 3 Martin Roukala 2022-12-07 10:13:18 UTC
FYI, I started working on this issue: https://invent.kde.org/utilities/yakuake/-/merge_requests/85