From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Mon, 27 Dec 2021 22:41:33 +0000 (+0100) Subject: view.c: Remove 'activated' flag when minimizing a view X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=09949e6fafde4a2b5429fe0c754e64c0bcb48adf;p=proto%2Flabwc.git view.c: Remove 'activated' flag when minimizing a view 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. --- diff --git a/src/view.c b/src/view.c index 8675d073..3956f739 100644 --- a/src/view.c +++ b/src/view.c @@ -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); }