Add action ToggleShowDesktop
Some checks are pending
labwc.github.io / notify (push) Waiting to run

This commit is contained in:
Johan Malm 2026-04-06 22:05:37 +01:00 committed by Johan Malm
parent 8b32422b93
commit da37e97a45
8 changed files with 106 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include "layers.h"
#include "node.h"
#include "output.h"
#include "show-desktop.h"
#include "ssd.h"
#include "view.h"
#include "workspaces.h"
@ -113,6 +114,8 @@ desktop_focus_view(struct view *view, bool raise)
*/
struct view *dialog = view_get_modal_dialog(view);
set_or_offer_focus(dialog ? dialog : view);
show_desktop_reset();
}
/* TODO: focus layer-shell surfaces also? */