all repos — openbox @ 04c77b7234aade8abdb8d08728de1c3e93d968ad

openbox fork - make it a bit more like ryudo

action toggledockautohide to toggle if the dock autohides
Mikael Magnusson mikachu@comhem.se
commit

04c77b7234aade8abdb8d08728de1c3e93d968ad

parent

134974e8e2b69b0642dab76ef828bc9741270f7c

2 files changed, 13 insertions(+), 0 deletions(-)

jump to
M openbox/action.copenbox/action.c

@@ -677,6 +677,11 @@ action_moveresize,

setup_action_resize }, { + "toggledockautohide", + action_toggle_dockautohide, + NULL + }, + { "toggleshowdesktop", action_toggle_show_desktop, NULL

@@ -1534,6 +1539,12 @@ client_set_layer(c, c->below ? 0 : -1);

else if (data->layer.layer > 0) client_set_layer(c, c->above ? 0 : 1); 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)
M openbox/action.hopenbox/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);