Rendering issue in Emacs and Wayland (Fedora Workstation 39)

Hi Everyone,

I am experiencing a strange render issue with Emacs on Fedora 39. Part of the buffers are not updating when scrolling the screen.

It seems to be an issue specifically with Wayland because it is not present if I login using GNOME on Xorg. I have tried both the official Fedora build of Emacs and a GTK natively compiled version (deathwish/emacs-pgtk-nativecomp Copr). The issue is present in both.

I could workaround this by using Xorg but it would be nice to keep Wayland. I am using the NVIDIA drivers from RPM Fusion. Here is the output of inxi -Gxx:

  Device-1: NVIDIA GP104 [GeForce GTX 1080] vendor: Gigabyte driver: nvidia
    v: 550.67 arch: Pascal pcie: speed: 8 GT/s lanes: 16 ports: active: none
    off: DP-3 empty: DP-1, DP-2, DVI-D-1, HDMI-A-1 bus-ID: 01:00.0
    chip-ID: 10de:1b80
  Display: wayland server: v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.5 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
    gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DP-3 model: Samsung U32J59x res: 3840x2160 dpi: 140
    diag: 800mm (31.5")
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.67 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce GTX 1080/PCIe/SSE2
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.

Any help would be greatly appreciated :pray: :slight_smile: