mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -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
|
|
@ -510,6 +510,13 @@ xwayland_view_maximize(struct view *view, bool maximized)
|
|||
maximized);
|
||||
}
|
||||
|
||||
static void
|
||||
xwayland_view_minimize(struct view *view, bool minimized)
|
||||
{
|
||||
wlr_xwayland_surface_set_minimized(xwayland_surface_from_view(view),
|
||||
minimized);
|
||||
}
|
||||
|
||||
enum z_direction {
|
||||
LAB_TO_FRONT,
|
||||
LAB_TO_BACK,
|
||||
|
|
@ -604,6 +611,7 @@ static const struct view_impl xwayland_view_impl = {
|
|||
.set_fullscreen = xwayland_view_set_fullscreen,
|
||||
.unmap = xwayland_view_unmap,
|
||||
.maximize = xwayland_view_maximize,
|
||||
.minimize = xwayland_view_minimize,
|
||||
.move_to_front = xwayland_view_move_to_front,
|
||||
.move_to_back = xwayland_view_move_to_back,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue