view: add client_request flag to view->impl->unmap()

This makes explicit the subtle behavioral difference between
xwayland_view_unmap() and handle_unmap().

With this change, the XDG and XWayland versions of handle_map/unmap()
are now identical, which will make further refactoring possible.
This commit is contained in:
John Lindgren 2023-07-01 12:37:47 -04:00 committed by Consolatis
parent b200dd2e7b
commit 370cdc80e0
4 changed files with 22 additions and 18 deletions

View file

@ -246,7 +246,7 @@ view_minimize(struct view *view, bool minimized)
}
view->minimized = minimized;
if (minimized) {
view->impl->unmap(view);
view->impl->unmap(view, /* client_request */ false);
_view_set_activated(view, false);
if (view == view->server->focused_view) {
/*