Partially revert "x11: stop remapping minimized windows on restore"

This re-introduces the xwayland remap on un-minimize hack, but limited
to fullscreen applications.
This commit is contained in:
Victoria Brekenfeld 2026-03-17 13:01:26 +01:00 committed by Michael Murphy
parent 1662b04e7c
commit 3a0b1ae5d2

View file

@ -429,6 +429,10 @@ impl CosmicSurface {
.store(minimized, Ordering::SeqCst);
if let WindowSurface::X11(surface) = self.0.underlying_surface() {
let _ = surface.set_hidden(minimized);
if !minimized && surface.is_fullscreen() {
let _ = surface.set_mapped(false);
let _ = surface.set_mapped(true);
}
}
}