Question: How do I deal with the situation on an Ubuntu system where when I try to minimize a Wine window, the window becomes transparent?
ChatGPT answer:
This is a fairly common issue with Wine + Ubuntu’s compositor (Compiz / Mutter / KWin depending on your desktop). The transparent window usually happens because of a compositing, graphics driver, or Wine window manager interaction bug.
Here’s how to fix it step by step.
On Ubuntu, this usually affects:
GNOME (default Ubuntu)
Compiz (older Ubuntu / Unity)
KDE Plasma
Run:
echo $XDG_CURRENT_DESKTOP
Run:
winecfgGo to Graphics
Try toggling:
✅ “Allow the window manager to decorate the windows”
✅ “Allow the window manager to control the windows”
If they’re enabled → disable them
If disabled → enable
them
Test which combination fixes it.
Transparent windows are usually a compositing issue.
Temporarily disable compositor:
gsettings set org.gnome.mutter experimental-features "[]"Or test by running Wine under:
env WINEDLLOVERRIDES="winemenubuilder.exe=d" wine yourapp.exeIf you're on X11, you can also try:
export MESA_GL_VERSION_OVERRIDE=4.5wine yourapp.exe
Some NVIDIA/AMD drivers cause this.
Open:
winecfgUnder Graphics, try:
Enable → “Emulate a virtual desktop”
Set a resolution (e.g. 1280x720)
This bypasses compositor interaction completely.
If you’re using proprietary NVIDIA drivers:
Run:
nvidia-settingsTry disabling:
Force Full Composition Pipeline
Or check which driver you’re using:
nvidia-smiIf you're on Wayland, switch to X11 at login screen (very common fix).
Wine works much more reliably on X11.
At login screen:
Click gear icon
Select Ubuntu on Xorg
Log in and test again.
On GNOME:
gsettings set org.gnome.desktop.interface enable-animations falseRe-enable later with:
gsettings set org.gnome.desktop.interface enable-animations true
Wine creates Windows-style windows.
Ubuntu’s compositor
sometimes:
Loses the texture buffer
Fails to repaint after minimize
Breaks transparency layer
Result: Invisible/transparent window until redraw.
If you just want it solved quickly:
Switch to Xorg
Enable “Emulate virtual desktop” in winecfg
That fixes it in ~90% of cases.
Related articles: