diff options
| author | Mikael Magnusson <mikachu@comhem.se> | 2004-03-27 15:25:39 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@comhem.se> | 2004-03-27 15:25:39 +0000 |
| commit | 04c77b7234aade8abdb8d08728de1c3e93d968ad (patch) | |
| tree | 29874d7dc28a965b58bb0824fdb436f834d5370a | |
| parent | 134974e8e2b69b0642dab76ef828bc9741270f7c (diff) | |
action toggledockautohide to toggle if the dock autohides
| -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); |
