From: Mikael Magnusson Date: Sat, 27 Mar 2004 15:25:39 +0000 (+0000) Subject: action toggledockautohide to toggle if the dock autohides X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=04c77b7234aade8abdb8d08728de1c3e93d968ad;p=chaz%2Fopenbox action toggledockautohide to toggle if the dock autohides --- diff --git a/openbox/action.c b/openbox/action.c index 22517151..81a9ef3e 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -676,6 +676,11 @@ ActionString actionstrings[] = action_moveresize, setup_action_resize }, + { + "toggledockautohide", + action_toggle_dockautohide, + NULL + }, { "toggleshowdesktop", action_toggle_show_desktop, @@ -1536,6 +1541,12 @@ void action_toggle_layer(union ActionData *data) client_action_end(data); } +void action_toggle_dockautohide(union ActionData *data) +{ + config_dock_hide = !config_dock_hide; + dock_configure(); +} + void action_toggle_show_desktop(union ActionData *data) { screen_show_desktop(!screen_showing_desktop); diff --git a/openbox/action.h b/openbox/action.h index e0dcd769..630bf41a 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -306,6 +306,8 @@ void action_send_to_layer(union ActionData *data); /* Layer */ void action_toggle_layer(union ActionData *data); /* Any */ +void action_toggle_dockautohide(union ActionData *data); +/* Any */ void action_toggle_show_desktop(union ActionData *data); /* Any */ void action_show_desktop(union ActionData *data);