diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-22 03:57:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-22 03:57:48 +0000 |
| commit | 1b7e813c62a6e54690d15550d51ac4269e63f346 (patch) | |
| tree | 0187eabee5053f09e22d2b73db2672fd2763520d /openbox/actions/showdesktop.c | |
| parent | 38268dc917ac9e59d9e8ef87825c9489ced77e95 (diff) | |
add the showdesktop action
Diffstat (limited to 'openbox/actions/showdesktop.c')
| -rw-r--r-- | openbox/actions/showdesktop.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/openbox/actions/showdesktop.c b/openbox/actions/showdesktop.c new file mode 100644 index 00000000..2699b1bc --- /dev/null +++ b/openbox/actions/showdesktop.c @@ -0,0 +1,21 @@ +#include "openbox/actions.h" +#include "openbox/screen.h" + +static gboolean run_func(ObActionsData *data, gpointer options); + +void action_showdesktop_startup() +{ + actions_register("ShowDesktop", + NULL, + NULL, + run_func, + NULL, NULL); +} + +/* Always return FALSE because its not interactive */ +static gboolean run_func(ObActionsData *data, gpointer options) +{ + screen_show_desktop(!screen_showing_desktop, NULL); + + return FALSE; +} |
