mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 03:36:01 +01:00
Fix blinking while switching pages (Closes: #13)
Thanks to sagesag for the patch. If this breaks anything feel free to revert this change.
This commit is contained in:
parent
659df484ea
commit
53ae144b32
1 changed files with 2 additions and 0 deletions
|
@ -1770,6 +1770,8 @@ void
|
||||||
switch_view(GtkWidget* widget)
|
switch_view(GtkWidget* widget)
|
||||||
{
|
{
|
||||||
GtkWidget* child = gtk_bin_get_child(GTK_BIN(Zathura.UI.viewport));
|
GtkWidget* child = gtk_bin_get_child(GTK_BIN(Zathura.UI.viewport));
|
||||||
|
if(child == widget)
|
||||||
|
return;
|
||||||
if(child)
|
if(child)
|
||||||
{
|
{
|
||||||
g_object_ref(child);
|
g_object_ref(child);
|
||||||
|
|
Loading…
Reference in a new issue