[gnome-settings-daemon] Use an empty region to ignore events
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] Use an empty region to ignore events
- Date: Sat, 2 Oct 2010 09:03:12 +0000 (UTC)
commit a4c4d46a3d0bbcf7b4f5d55dff0726a03b50354b
Author: William Jon McCann <jmccann redhat com>
Date: Sat Oct 2 05:02:25 2010 -0400
Use an empty region to ignore events
From https://bugzilla.gnome.org/show_bug.cgi?id=630975
plugins/mouse/gsd-locate-pointer.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/plugins/mouse/gsd-locate-pointer.c b/plugins/mouse/gsd-locate-pointer.c
index e9413b8..11b0da5 100644
--- a/plugins/mouse/gsd-locate-pointer.c
+++ b/plugins/mouse/gsd-locate-pointer.c
@@ -192,15 +192,9 @@ timeline_frame_cb (GsdTimeline *timeline,
static void
set_transparent_shape (GdkWindow *window)
{
- cairo_rectangle_int_t rect;
cairo_region_t *region;
- rect.width = WINDOW_SIZE;
- rect.height = WINDOW_SIZE;
- rect.x = 0;
- rect.y = 0;
- region = cairo_region_create_rectangle (&rect);
-
+ region = cairo_region_create ();
gdk_window_input_shape_combine_region (data->window, region, 0, 0);
cairo_region_destroy (region);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]