mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
animated-resizing, video-timer: Add missing return value from ::draw
When we connect to GtkWidget::draw, the signal handler should have a return value. This fixes overdrawing client-side decorations.
This commit is contained in:
parent
8dc090b9b1
commit
a082f4d804
@ -66,7 +66,7 @@ ensure_resources(cairo_surface_t *target)
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
static gboolean
|
||||
on_window_draw (GtkWidget *widget,
|
||||
cairo_t *cr)
|
||||
|
||||
@ -108,6 +108,8 @@ on_window_draw (GtkWidget *widget,
|
||||
}
|
||||
|
||||
g_rand_free(rand);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -190,7 +190,7 @@ adjust_clock_for_phase (gint64 frame_clock_time,
|
||||
|
||||
/* Drawing */
|
||||
|
||||
static void
|
||||
static gboolean
|
||||
on_window_draw (GtkWidget *widget,
|
||||
cairo_t *cr)
|
||||
{
|
||||
@ -224,6 +224,8 @@ on_window_draw (GtkWidget *widget,
|
||||
displayed_frame->frame_counter = gdk_frame_clock_get_frame_counter (frame_clock);
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user