XWayland: painting update issue for Qt apps [regression with xorg]
Affected version
GNOME 42.1
- Ubuntu 22.04
- not sure how to check Mutter verion
- GNOME on Wayland with XWayland
Bug summary
There are painting update issues for Qt app. The black parts in screenshots.
Steps to reproduce
sudo apt install qt6-base-dev
mkdir qt
cd ~/qt
git clone https://github.com/qt/qtbase.git
mkdir -p ~/tmp/application
cd ~/tmp/application
qmake6 ~/qt/qtbase/examples/widgets/mainwindows/application/application.pro
make
./application
What happened
Launch the above "application" in GNOME on Wayland with XWayland enabled. Then you can see gnome-on-wayland picture in screenshot. The menu bar and status bar are black.
And when try to drag the bottom-right corner to resize the window, the update is in same situation.
Same things happened with latest qtbase dev(6.5).
What did you expect to happen
Launch same application in GNOME on xorg, everything is fine as expected, see gnome-on-xorg picture in screenshot.
Relevant logs, screenshots, screencasts etc.
I have tried GNOME 42 on Fedora 36, same situation.
Original report in qt-project: https://bugreports.qt.io/browse/QTBUG-102844 Drawing issues with XWAYLAND on Ubuntu22.04
Edited by Liang Qi