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