]> icculus.org git repositories - dana/openbox.git/blob - openbox/actions/dockautohide.c
Fix a typo that prevented setting client size for the height only (???)
[dana/openbox.git] / openbox / actions / dockautohide.c
1 #include "openbox/actions.h"
2 #include "openbox/dock.h"
3 #include "openbox/config.h"
4
5 static gboolean run_func(ObActionsData *data, gpointer options);
6
7 void action_dockautohide_startup(void)
8 {
9     actions_register("ToggleDockAutoHide",
10                      NULL, NULL,
11                      run_func);
12 }
13
14 /* Always return FALSE because its not interactive */
15 static gboolean run_func(ObActionsData *data, gpointer options)
16 {
17     config_dock_hide = !config_dock_hide;
18     dock_configure();
19
20     return FALSE;
21 }