From c73bd381fe7d4bc601ca1f8ecdb1b8bbf074aa18 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 8 Sep 2003 03:31:40 +0000 Subject: [PATCH] fix autohiding --- openbox/dock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openbox/dock.c b/openbox/dock.c index e2477475..85dbc360 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -550,8 +550,6 @@ static gboolean hide_timeout(gpointer data) void dock_hide(gboolean hide) { - if (dock->hidden == hide || !config_dock_hide) - return; if (!hide) { /* show */ dock->hidden = FALSE; @@ -559,7 +557,7 @@ void dock_hide(gboolean hide) /* if was hiding, stop it */ ob_main_loop_timeout_remove(ob_main_loop, hide_timeout); - } else { + } else if (!dock->hidden && config_dock_hide) { ob_main_loop_timeout_add(ob_main_loop, config_dock_hide_timeout, hide_timeout, NULL, NULL); } -- 2.45.2