From 0fd49aa8862a3c634ee6a14da139b4e5d620c605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 23 Jul 2012 21:32:46 -0400 Subject: [PATCH] dnd: Clip flowers to window content area https://bugs.freedesktop.org/show_bug.cgi?id=52420 --- clients/dnd.c | 3 +++ 1 file changed, 3 insertions(+) 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])