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:
parent
1662b04e7c
commit
3a0b1ae5d2
1 changed files with 4 additions and 0 deletions
|
|
@ -429,6 +429,10 @@ impl CosmicSurface {
|
||||||
.store(minimized, Ordering::SeqCst);
|
.store(minimized, Ordering::SeqCst);
|
||||||
if let WindowSurface::X11(surface) = self.0.underlying_surface() {
|
if let WindowSurface::X11(surface) = self.0.underlying_surface() {
|
||||||
let _ = surface.set_hidden(minimized);
|
let _ = surface.set_hidden(minimized);
|
||||||
|
if !minimized && surface.is_fullscreen() {
|
||||||
|
let _ = surface.set_mapped(false);
|
||||||
|
let _ = surface.set_mapped(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue