From 310f02b786b46dd7ac32c034ac9df3adfb2137e0 Mon Sep 17 00:00:00 2001 From: Valeriy Kamyshniy Date: Fri, 14 Nov 2014 14:25:35 +0200 Subject: [PATCH] =?UTF-8?q?[Summary]=20Bug=20fix:=20in=20the=20MainClock?= =?UTF-8?q?=20editing=20cursor=E2=80=99s=20cairo=5Ffill=20filled=20all=20t?= =?UTF-8?q?he=20occurred=20rectangles=20(including=20one,=20used=20to=20cl?= =?UTF-8?q?ip).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/gtkmm2ext/cairo_widget.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/gtkmm2ext/cairo_widget.cc b/libs/gtkmm2ext/cairo_widget.cc index c19ca30f9c..9f4ad24a08 100644 --- a/libs/gtkmm2ext/cairo_widget.cc +++ b/libs/gtkmm2ext/cairo_widget.cc @@ -66,7 +66,12 @@ CairoWidget::on_expose_event (GdkEventExpose *ev) #endif cr->rectangle (ev->area.x, ev->area.y, ev->area.width, ev->area.height); + +#ifdef USE_CAIRO_IMAGE_SURFACE_FOR_CAIRO_WIDGET cr->clip_preserve (); +#else + cr->clip (); +#endif /* paint expose area the color of the parent window bg */