view: add minimize method

...and call wlr_xwayland_surface_set_minimized() for xwayland surfaces on
(un)minimize.

Fixes: #958
This commit is contained in:
Johan Malm 2023-06-25 11:37:56 +01:00 committed by Johan Malm
parent 945928a8f6
commit 16bf67a8cd
4 changed files with 19 additions and 0 deletions

View file

@ -230,6 +230,9 @@ view_minimize(struct view *view, bool minimized)
wlr_foreign_toplevel_handle_v1_set_minimized(
view->toplevel.handle, minimized);
}
if (view->impl->minimize) {
view->impl->minimize(view, minimized);
}
view->minimized = minimized;
if (minimized) {
view->impl->unmap(view);