Bug 468590 - Window for mail writing does not repaint properly on Wayland
Summary: Window for mail writing does not repaint properly on Wayland
Status: CONFIRMED
Alias: None
Product: kontact
Classification: Applications
Component: mail (show other bugs)
Version: 5.22.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-17 01:10 UTC by Gerion
Modified: 2023-05-19 10:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerion 2023-04-17 01:10:54 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Start KDE/Plasma with Wayland.
2. Press "New Message" in Kontact (in the Kmail view).
3. Change "To", the "Subject", or add some message text.

OBSERVED RESULT
When adding a new mail as "To", the GUI draws a new line, which overdraw the "Subject" line, so that is is not visible anymore.
When typing something in the subject line, the Window title changes accordingly, but the text in the subject field remains invisible.
When adding a message (I use the KMail plugin to call an external editor), the external editor opens, I type the message, close the window, and nothing happens.

All of the above GUI issues fixes itself when resizing the window or pressing "Send->Abort". So I'm pretty sure somewhere is a missing repaint.

EXPECTED RESULT
The GUI updates immediately.

SOFTWARE/OS VERSIONS
Windows: -
macOS: -
Linux/KDE Plasma: Gentoo Linux with Plasma 5.27.4
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This bug happens only on Wayland. Forcing the program to xwayland with `QT_QPA_PLATFORM=xcb kontact` also fixes the problem.
This bug is not new, I experienced it at least since last summer, so two(?) Plasma releases ago.

Maybe related to https://bugs.kde.org/show_bug.cgi?id=424024
Comment 1 Gerion 2023-04-17 01:13:41 UTC
I forgot the summary, sorry. Basically, the window for mail writing in Kontact does not respond when started under Wayland. For some actions the GUI is either updated incorrectly or not at all.
Comment 2 Łukasz Żarnowiecki 2023-05-19 10:15:40 UTC
Yes, it's a probably a duplicate of the bug you mentioned and xwayland workaround is working fine for me.