From 53ae144b32f03106f7c1e04529f08526023e2f71 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 1 Jul 2011 14:42:08 +0200 Subject: [PATCH] Fix blinking while switching pages (Closes: #13) Thanks to sagesag for the patch. If this breaks anything feel free to revert this change. --- zathura.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zathura.c b/zathura.c index 9192938..6c71a29 100644 --- a/zathura.c +++ b/zathura.c @@ -1770,6 +1770,8 @@ void switch_view(GtkWidget* widget) { GtkWidget* child = gtk_bin_get_child(GTK_BIN(Zathura.UI.viewport)); + if(child == widget) + return; if(child) { g_object_ref(child);