Bug 483314 - xwayland windows don't maximize over the whole screen sometimes
Summary: xwayland windows don't maximize over the whole screen sometimes
Status: RESOLVED DUPLICATE of bug 481456
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-12 05:24 UTC by andy
Modified: 2024-03-12 19:28 UTC (History)
1 user (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 andy 2024-03-12 05:24:47 UTC
SUMMARY
I'm not sure how to reproduce this, but several times a day when I try to maximize an xwayland window (typically the vivaldi browser), it seems to think the extents of the screen is somewhere else. It will go "maximized" but cover part of the lower half of the screen, or be offset and covering multiple screens.

As a workaround to make the maximize apply properly, I have to first resize the window so it is closer to the size of the screen and each corner is close to each corner of the screen, and then when I maximize it seems to take that hint and fill the screen properly. 

I have multiple screens including 2K and 4K.

STEPS TO REPRODUCE
1. Use vivaldi browser with xwayland
2. Maximize/restore windows throughout the day
3. Resize the window so it is close to the target geometry (each corner of the window close to each corner of the screen, within the screen)

OBSERVED RESULT
Step 2: Occasionally the maximized window does not fill the target screen.
Step 3: Resizing the window to be closer to the expected maximized area, and then trying to maximize it snaps it to the right location.

EXPECTED RESULT
Step 2: The maximized window should fill the target screen always.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux rolling
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Nicolas Fella 2024-03-12 18:42:34 UTC
This should be fixed in 6.0.2, see https://bugs.kde.org/show_bug.cgi?id=481456

*** This bug has been marked as a duplicate of bug 481456 ***
Comment 2 andy 2024-03-12 19:28:15 UTC
(In reply to Nicolas Fella from comment #1)
> This should be fixed in 6.0.2, see
> https://bugs.kde.org/show_bug.cgi?id=481456
> 
> *** This bug has been marked as a duplicate of bug 481456 ***

Interesting. I should note all my screens are at 100% scale so I don't know if that bug is the same issue. I'll reopen if it's still an issue in 6.0.2