Another workaround is to enable DRI3. So in my case with a intel GPU, I created a file "/etc/X11/xorg.conf.d/20-intel.conf" with the following content: Section "Device" Identifier "Intel Graphics" Driver "intel" Option "DRI" "3" EndSection