Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133919

Wayland rendering bug when using native windows on GNOME/Weston

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2, 6.9.0 Beta2
    • QPA: Wayland
    • None
    • Vulkan, AMD Radeon 780M (radeonsi, gfx1103_r1, LLVM 19.1.6, DRM 3.54, 6.6.30-rt30), Mesa 24.3.4
      Wayland
      Happens on mutter 47.4 and weston 14.0.1.
      Tested on Qt 6.8.x and 6.9 (beta 2)
    • Linux/Wayland

    Description

      When using native window rendering within Qt (which is necessary if we want to paint in the widget manually, say, for vulkan surfaces) various refreshing artifacts appear on Wayland and the native Qt UI elements become garbled.

      This happens on wayland compositors that do not implement SSD, specifically mutter (GNOME) and weston. The UI works fine on KDE.

      You can find a small repro program here: https://projects.govanify.com/govanify/qt-native-wayland-borked

      Here's an example of the issue:

      Additionally, I'm getting this in the logs when hiding and showing back ui elements in this state:

      The cached device pixel ratio value was stale on window expose.  Please file a QTBUG which explains how to reproduce.

      I've included various recordings showing the bug in action.

      Several Qt apps I've tried are affected by this issue if you start them with the environment variable QT_USE_NATIVE_WINDOWS=1 , for example wireshark.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            govanify Gauvain Roussel-Tarbouriech
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes