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

@ -36,6 +36,7 @@ struct view_impl {
void (*set_fullscreen)(struct view *view, bool fullscreen);
void (*unmap)(struct view *view);
void (*maximize)(struct view *view, bool maximize);
void (*minimize)(struct view *view, bool minimize);
void (*move_to_front)(struct view *view);
void (*move_to_back)(struct view *view);
};