summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-17 23:16:45 +0200
committerThomas White <taw@physics.org>2019-07-17 23:16:45 +0200
commitc9984d69faa1ff4e6c8c5fe59b69e748387a8c80 (patch)
tree092c9e0dfa3678804d5f88114e241a0383f59159
parent03f23ec9b611bf61f439ddde4a8759459be29832 (diff)
Redraw the main window periodically anyway
-rw-r--r--src/display.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/display.c b/src/display.c
index b5f7f24..8181e5d 100644
--- a/src/display.c
+++ b/src/display.c
@@ -593,6 +593,13 @@ static gint realise_sig(GtkWidget *da, struct lightctx *nl)
}
+static gboolean redraw_cb(gpointer data)
+{
+ redraw((struct lightctx *)data);
+ return G_SOURCE_CONTINUE;
+}
+
+
void create_main_window(struct lightctx *nl)
{
GtkWidget *mainwindow;
@@ -615,4 +622,6 @@ void create_main_window(struct lightctx *nl)
gtk_widget_grab_focus(GTK_WIDGET(da));
gtk_widget_show_all(mainwindow);
+
+ g_timeout_add(200, redraw_cb, nl);
}