]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/showdesktop.c
Pass a client set to all actions, and make focus cycling use a client set.
[dana/openbox.git] / openbox / actions / showdesktop.c
1 #include "openbox/action.h"
2 #include "openbox/action_list_run.h"
3 #include "openbox/client_set.h"
4 #include "openbox/screen.h"
5
6 static gboolean run_func(const ObClientSet *set,
7                          const ObActionListRun *data, gpointer options);
8
9 void action_showdesktop_startup(void)
10 {
11     action_register("ToggleShowDesktop", OB_ACTION_DEFAULT_FILTER_EMPTY,
12                     NULL, NULL, run_func);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(const ObClientSet *set,
17                          const ObActionListRun *data, gpointer options)
18 {
19     screen_show_desktop(!screen_showing_desktop, NULL);
20
21     return FALSE;
22 }