x11: stop remapping minimized windows on restore

The remap-on-restore workaround was introduced in 3b9d0ce
("HACK: Remap minimized X11 windows on restore"), but forcing an
unmap/map cycle on unminimize now regresses Steam: restoring a
non-fullscreen window can leave the main surface black while input
and tooltips still work.

Keep the existing X11 hidden-state handling and only drop the
forced remap cycle. This preserves the newer minimize/unminimize
signaling for X11 clients while avoiding an extra restore-time
remap.
This commit is contained in:
mikairyuu 2026-02-28 18:10:40 +09:00 committed by Victoria Brekenfeld
parent 98cca4f3b7
commit 1dc9c53a41

View file

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