diff options
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 11 | ||||
| -rw-r--r-- | openbox/action.h | 2 |
2 files changed, 13 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index 22517151..81a9ef3e 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -677,6 +677,11 @@ ActionString actionstrings[] = setup_action_resize }, { + "toggledockautohide", + action_toggle_dockautohide, + NULL + }, + { "toggleshowdesktop", action_toggle_show_desktop, NULL @@ -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); |
