fix autohiding

This commit is contained in:
Dana Jansens 2003-09-08 03:31:40 +00:00
parent 596be5028e
commit c73bd381fe

View file

@ -550,8 +550,6 @@ static gboolean hide_timeout(gpointer data)
void dock_hide(gboolean hide) void dock_hide(gboolean hide)
{ {
if (dock->hidden == hide || !config_dock_hide)
return;
if (!hide) { if (!hide) {
/* show */ /* show */
dock->hidden = FALSE; dock->hidden = FALSE;
@ -559,7 +557,7 @@ void dock_hide(gboolean hide)
/* if was hiding, stop it */ /* if was hiding, stop it */
ob_main_loop_timeout_remove(ob_main_loop, hide_timeout); 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, ob_main_loop_timeout_add(ob_main_loop, config_dock_hide_timeout,
hide_timeout, NULL, NULL); hide_timeout, NULL, NULL);
} }