Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287731

[XWayland] Portions of window get painted with solid white color

    XMLWordPrintable

Details

    Description

      To reproduce: on a Linux desktop running Wayland (like Ubuntu 22.04 or Fedora 36) compile and run the attached program. It may need a few times for the bug to show up as a vertical white rectangle instead of a grey rectangle with rounded corners (see attached "good" and "bad" screenshots).

      Workarounds:
      * Disable Glamor (set XWAYLAND_NO_GLAMOR=1 in /etc/environment, then reboot the system).
      * Change the default Java graphics pipeline to OpenGL: run java with -Dsun.java2d.opengl=true

      Attachments

        1. good-image.png
          good-image.png
          5 kB
        2. Test.java
          2 kB
        3. white-rectangle.png
          white-rectangle.png
          5 kB

        Activity

          People

            mkartashev Maxim Kartashev
            mkartashev Maxim Kartashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: