[gtk+] wayland: Force an expose for the whole area when scrolling
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Force an expose for the whole area when scrolling
- Date: Mon, 16 Apr 2012 14:27:37 +0000 (UTC)
commit cddfcf1418f2983890895e5d3e072ad12d19d525
Author: Rob Bradford <rob linux intel com>
Date: Thu Jan 19 11:51:50 2012 +0000
wayland: Force an expose for the whole area when scrolling
gdk/wayland/gdkwindow-wayland.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index d2adc36..c5da98e 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -935,21 +935,7 @@ gdk_wayland_window_translate (GdkWindow *window,
gint dx,
gint dy)
{
- cairo_surface_t *surface;
- cairo_t *cr;
-
- surface = gdk_wayland_window_ref_cairo_surface (window->impl_window);
- cr = cairo_create (surface);
- cairo_surface_destroy (surface);
-
- gdk_cairo_region (cr, area);
- cairo_clip (cr);
- cairo_set_source_surface (cr, cairo_get_target (cr), dx, dy);
- cairo_push_group (cr);
- cairo_paint (cr);
- cairo_pop_group_to_source (cr);
- cairo_paint (cr);
- cairo_destroy (cr);
+ _gdk_window_invalidate_for_expose (window, area);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]