summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-08-31 13:21:09 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2013-08-31 13:21:09 -0400
commitf07d11309805dfe72fc0ded5af0aa135d3ef9003 (patch)
treeaf2b6d5d3c5240856aa76425379575c26686193f /gdk
parent832e77fbb40178a8d95dc009acb42d6a6bcaa5c9 (diff)
downloadgtk+-f07d11309805dfe72fc0ded5af0aa135d3ef9003.tar.gz
gdkwindow-x11: Correct math for filling in the _NET_WM_OPAQUE_REGION property
This fixes incorrect rendering under mutter and other WMs that implement _NET_WM_OPAQUE_REGION.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkwindow-x11.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index a88cf8e242..e5b3ffecca 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -5576,10 +5576,10 @@ gdk_x11_window_set_opaque_region (GdkWindow *window,
{
cairo_rectangle_int_t rect;
cairo_region_get_rectangle (region, i, &rect);
- data[i+0] = rect.x;
- data[i+1] = rect.y;
- data[i+2] = rect.width;
- data[i+3] = rect.height;
+ data[i*4+0] = rect.x;
+ data[i*4+1] = rect.y;
+ data[i*4+2] = rect.width;
+ data[i*4+3] = rect.height;
}
}
else