From edbd6f6adeb7f1cf00015d34989eb4526a1f5b0f Mon Sep 17 00:00:00 2001 From: Quantum Date: Fri, 7 May 2021 17:47:37 -0400 Subject: [PATCH] [client] wayland: implement minimize operation This commit implements minimize for both xdg-shell and libdecor pseudo-shell. This fixes #535. --- client/displayservers/Wayland/shell_libdecor.c | 5 +++++ client/displayservers/Wayland/shell_xdg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/displayservers/Wayland/shell_libdecor.c b/client/displayservers/Wayland/shell_libdecor.c index 8604b59d..edf4acbd 100644 --- a/client/displayservers/Wayland/shell_libdecor.c +++ b/client/displayservers/Wayland/shell_libdecor.c @@ -130,3 +130,8 @@ bool waylandGetFullscreen(void) { return wlWm.fullscreen; } + +void waylandMinimize(void) +{ + libdecor_frame_set_minimized(wlWm.libdecorFrame); +} diff --git a/client/displayservers/Wayland/shell_xdg.c b/client/displayservers/Wayland/shell_xdg.c index f489364e..e3b680eb 100644 --- a/client/displayservers/Wayland/shell_xdg.c +++ b/client/displayservers/Wayland/shell_xdg.c @@ -149,5 +149,5 @@ bool waylandGetFullscreen(void) void waylandMinimize(void) { - //FIXME + xdg_toplevel_set_minimized(wlWm.xdgToplevel); }