[gtk+] gdkwindow-broadway: Move the dirty flag setting to end_paint
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdkwindow-broadway: Move the dirty flag setting to end_paint
- Date: Sun, 22 Jun 2014 14:21:09 +0000 (UTC)
commit a1fb252ebaa79f1ad0365459091998618cd90e5e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Jun 22 09:26:01 2014 -0400
gdkwindow-broadway: Move the dirty flag setting to end_paint
This is where it belongs -- process_updates_recurse is the wrong place
for it.
gdk/broadway/gdkwindow-broadway.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/gdk/broadway/gdkwindow-broadway.c b/gdk/broadway/gdkwindow-broadway.c
index 49a48ac..75a12d9 100644
--- a/gdk/broadway/gdkwindow-broadway.c
+++ b/gdk/broadway/gdkwindow-broadway.c
@@ -991,6 +991,13 @@ gdk_broadway_window_get_input_shape (GdkWindow *window)
return NULL;
}
+static void
+gdk_broadway_window_end_paint (GdkWindow *window)
+{
+ GdkWindowImplBroadway *impl;
+ impl = GDK_WINDOW_IMPL_BROADWAY (window->impl);
+ impl->dirty = TRUE;
+}
static gboolean
gdk_window_broadway_set_static_gravities (GdkWindow *window,
@@ -1477,12 +1484,7 @@ static void
gdk_broadway_window_process_updates_recurse (GdkWindow *window,
cairo_region_t *region)
{
- GdkWindowImplBroadway *impl;
-
_gdk_window_process_updates_recurse (window, region);
-
- impl = GDK_WINDOW_IMPL_BROADWAY (window->impl);
- impl->dirty = TRUE;
}
void
@@ -1536,6 +1538,7 @@ gdk_window_impl_broadway_class_init (GdkWindowImplBroadwayClass *klass)
impl_class->destroy_foreign = gdk_broadway_window_destroy_foreign;
impl_class->get_shape = gdk_broadway_window_get_shape;
impl_class->get_input_shape = gdk_broadway_window_get_input_shape;
+ impl_class->end_paint = gdk_broadway_window_end_paint;
impl_class->beep = gdk_broadway_window_beep;
impl_class->focus = gdk_broadway_window_focus;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]