Bug 473772 - Upon XWayland crash, X windows are offset slightly to the top and global menu ceases to function
Summary: Upon XWayland crash, X windows are offset slightly to the top and global menu...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.7
Platform: NixOS Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-26 09:42 UTC by Naxdy
Modified: 2024-06-12 07:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naxdy 2023-08-26 09:42:37 UTC
SUMMARY
When in Wayland and XWayland crashes or is killed, newly started X windows are offset slightly to the top. This results in the top UI elements being hidden behind the title bar, and an awkward empty space appearing at the bottom between the shadow and the window contents, and global menu no longer works.

Note that this issue can be somewhat worked around by setting the window to borderless.


STEPS TO REPRODUCE
1. Log in to Plasma Wayland 
2. Start at least 1 X window
3. Brutally murder XWayland by killing its process
4. Open another X window

OBSERVED RESULT
The newly opened X window contents are offset slightly to the top, and global menu is no longer functional for that window

EXPECTED RESULT
The window contents appear the same as before, and global menu is functional

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: NixOS 
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
-
Comment 1 Vlad Zahorodnii 2024-06-12 07:07:53 UTC
The offset issue should be fixed in 6.0.0 (it was caused by using outdated cursor atoms). The global menu is something different, if it's still an issue please file a new bug report for plasmashell.