1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/client_set.h"
4 #include "openbox/screen.h"
6 static gboolean run_func(const ObClientSet *set,
7 const ObActionListRun *data, gpointer options);
9 void action_showdesktop_startup(void)
11 action_register("ToggleShowDesktop", OB_ACTION_DEFAULT_FILTER_EMPTY,
12 NULL, NULL, run_func);
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(const ObClientSet *set,
17 const ObActionListRun *data, gpointer options)
19 screen_show_desktop(!screen_showing_desktop, NULL);