summaryrefslogtreecommitdiff
blob: 3f5b763c1bd4f55187c993fe518b5708c89af91e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/tilda_window.c
+++ b/src/tilda_window.c
@@ -427,6 +427,9 @@
     gtk_window_move (GTK_WINDOW(tw->window), config_getint ("x_pos"), config_getint ("y_pos"));
     gtk_window_set_default_size (GTK_WINDOW(tw->window), config_getint ("max_width"), config_getint ("max_height"));
     gtk_window_resize (GTK_WINDOW(tw->window), config_getint ("max_width"), config_getint ("max_height"));
+    /* Create GDK resources now, to prevent crashes later on */
+    gtk_widget_realize (tw->window);
+
     generate_animation_positions (tw);
 
     return tw;