view: add view_toggle_maximize()

This commit is contained in:
Johan Malm 2021-08-02 16:49:41 +01:00
parent d6376808b8
commit 526ab1ae75
5 changed files with 12 additions and 12 deletions

View file

@ -68,10 +68,8 @@ static void handle_request_maximize(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, request_maximize);
if(view != NULL) {
view_maximize(view, !view->maximized);
}
assert(view);
view_toggle_maximize(view);
}
static void