2699b1bca77675363a53653c5a6375689759550d
[dana/openbox-history.git] / openbox / actions / showdesktop.c
1 #include "openbox/actions.h"
2 #include "openbox/screen.h"
3
4 static gboolean run_func(ObActionsData *data, gpointer options);
5
6 void action_showdesktop_startup()
7 {
8     actions_register("ShowDesktop",
9                      NULL,
10                      NULL,
11                      run_func,
12                      NULL, NULL);
13 }
14
15 /* Always return FALSE because its not interactive */
16 static gboolean run_func(ObActionsData *data, gpointer options)
17 {
18     screen_show_desktop(!screen_showing_desktop, NULL);
19
20     return FALSE;
21 }