summaryrefslogtreecommitdiff
path: root/clients/dnd.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-07-23 21:32:46 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-07-23 21:32:46 -0400
commit0fd49aa8862a3c634ee6a14da139b4e5d620c605 (patch)
treed72a223e8af57439eed1aac884f5867e068f06c8 /clients/dnd.c
parent72b0f8f2ecbec57ef8755755dd48ba41a8614e95 (diff)
downloadweston-0fd49aa8862a3c634ee6a14da139b4e5d620c605.tar.gz
dnd: Clip flowers to window content area
https://bugs.freedesktop.org/show_bug.cgi?id=52420
Diffstat (limited to 'clients/dnd.c')
-rw-r--r--clients/dnd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clients/dnd.c b/clients/dnd.c
index c38b94fd..6f55e954 100644
--- a/clients/dnd.c
+++ b/clients/dnd.c
@@ -186,6 +186,9 @@ dnd_redraw_handler(struct widget *widget, void *data)
cairo_set_source_rgba(cr, 0, 0, 0, 0.8);
cairo_fill(cr);
+ cairo_rectangle(cr, allocation.x, allocation.y,
+ allocation.width, allocation.height);
+ cairo_clip(cr);
cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
for (i = 0; i < ARRAY_LENGTH(dnd->items); i++) {
if (!dnd->items[i])