]> git.mdlowis.com Git - proto/labwc.git/commitdiff
xwayland: do not re-set deocrations on unminimize
authorJohan Malm <jgm323@gmail.com>
Tue, 21 Nov 2023 22:02:22 +0000 (22:02 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 21 Nov 2023 22:08:59 +0000 (22:08 +0000)
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

index 37e9aba6e02d756ff87ee2195dc694da3b317b4a..96cb6457ac487aa1b9f2da10673b0a1d73d83bbb 100644 (file)
@@ -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;