]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view.c: Remove 'activated' flag when minimizing a view
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 27 Dec 2021 22:41:33 +0000 (23:41 +0100)
committerARDiDo <90479315+ARDiDo@users.noreply.github.com>
Tue, 28 Dec 2021 14:50:21 +0000 (09:50 -0500)
Before this change a window that had been minimized showed up with states Minimized and Activated.
For foreign-toplevel clients like taskbars that could mean to handle multiple windows at once
having a 'activated' state even though they were clearly minimized.

src/view.c

index 8675d0730115f4bcde68392e29324bc7547c0c5a..3956f73968c6106cbb5facb798da6b83ed86eec4 100644 (file)
@@ -88,6 +88,7 @@ view_minimize(struct view *view, bool minimized)
        if (minimized) {
                view->impl->unmap(view);
                desktop_move_to_back(view);
+               view_set_activated(view, false);
        } else {
                view->impl->map(view);
        }