mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
view: add minimize method
...and call wlr_xwayland_surface_set_minimized() for xwayland surfaces on (un)minimize. Fixes: #958
This commit is contained in:
parent
945928a8f6
commit
16bf67a8cd
4 changed files with 19 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue