vmware / open-vm-tools

Official repository of VMware open-vm-tools project
http://sourceforge.net/projects/open-vm-tools/
2.23k stars 425 forks source link

DnD detection windows visible on Wayland #549

Open sbstnk opened 2 years ago

sbstnk commented 2 years ago

We got this bug reported against gnome-shell when running on Wayland under VMware about small empty square windows popping up in some situations: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4601

Apparently the windows in that bug are DnD detection windows created by vmware-tools. On Wayland these windows are created as regular windows and would have a background color depending on the theme. Then this code tries to make them invisible using set_opacity() which does nothing on Wayland.

An alternative that should work on Wayland is to use CSS to make the background transparent:

This is untested and I'm not a gtk expert, so maybe there are better ways to do this, but it should at least point you in the right direction.

dsouders commented 2 years ago

@sbstnk Thank you for reporting this issue and for identifying the problem! An internal bug has been filed with our graphics team to address the problem.