From 1b8e404c9c6078088ba4b4eb48ae971702810497 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Tue, 21 Nov 2023 22:02:22 +0000 Subject: [PATCH] xwayland: do not re-set deocrations on unminimize Reproduce issue by: 1. Run an XWayland client 2. ToggleDecorations twice to hide deco 3. Minimize/unminimize from panel 4. Observe that deco is back Reported-by: @Consolatis --- src/xwayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xwayland.c b/src/xwayland.c index 37e9aba6..96cb6457 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -530,7 +530,9 @@ xwayland_view_map(struct view *view) * 3. set maximized (geometry depends on decorations) */ view_set_fullscreen(view, xwayland_surface->fullscreen); - view_set_decorations(view, want_deco(xwayland_surface)); + if (!view->been_mapped) { + view_set_decorations(view, want_deco(xwayland_surface)); + } enum view_axis axis = VIEW_AXIS_NONE; if (xwayland_surface->maximized_horz) { axis |= VIEW_AXIS_HORIZONTAL;