summaryrefslogtreecommitdiff
path: root/community/tilda/start-hidden-fix.patch
blob: d42fa0393494d49371dbe44e0ffde70319129f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/src/tilda.c b/src/tilda.c
index c0a435f..50daa47 100644
--- a/src/tilda.c
+++ b/src/tilda.c
@@ -639,18 +639,7 @@ int main (int argc, char *argv[])
         }
     }

-    if (config_getbool ("hidden"))
-    {
-        /* It does not cause graphical glitches to make tilda hidden on start this way.
-         * It does make tilda appear much faster on it's first appearance, so I'm leaving
-         * it this way, because it has a good benefit, and no apparent drawbacks. */
-        gtk_widget_show (GTK_WIDGET(tw->window));
-        gtk_widget_hide (GTK_WIDGET(tw->window));
-    }
-    else
-    {
-        pull (tw, PULL_DOWN);
-    }
+    pull (tw, config_getbool ("hidden") ? PULL_UP : PULL_DOWN);

     g_print ("Tilda has started. Press %s to pull down the window.\n",
         config_getstr ("key"));