]> Dogcows Code - chaz/openbox/commitdiff
fix autohiding
authorDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 03:31:40 +0000 (03:31 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Sep 2003 03:31:40 +0000 (03:31 +0000)
openbox/dock.c

index e24774753adb0680c32f0784f50be4eed63552ac..85dbc360f85aea466945142f25a3c9a649f64da2 100644 (file)
@@ -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);
     }
This page took 0.024328 seconds and 4 git commands to generate.