summaryrefslogtreecommitdiff
path: root/openbox/actions/dockautohide.c
blob: 4a750b2c3a368ebea5bcbc03842772db92168578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "openbox/actions.h"
#include "openbox/dock.h"
#include "openbox/config.h"

static gboolean run_func(ObActionsData *data, gpointer options);

void action_dockautohide_startup(void)
{
    actions_register("ToggleDockAutoHide",
                     NULL, NULL,
                     run_func);
}

/* Always return FALSE because its not interactive */
static gboolean run_func(ObActionsData *data, gpointer options)
{
    config_dock_hide = !config_dock_hide;
    dock_configure();

    return FALSE;
}