From 1b7e813c62a6e54690d15550d51ac4269e63f346 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 22 Jun 2007 03:57:48 +0000 Subject: add the showdesktop action --- openbox/actions/showdesktop.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 openbox/actions/showdesktop.c (limited to 'openbox/actions/showdesktop.c') 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; +} -- cgit v1.2.3