projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b0f8f
)
dnd: Clip flowers to window content area
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 24 Jul 2012 01:32:46 +0000
(21:32 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 24 Jul 2012 01:32:46 +0000
(21:32 -0400)
https://bugs.freedesktop.org/show_bug.cgi?id=52420
clients/dnd.c
patch
|
blob
|
history
diff --git
a/clients/dnd.c
b/clients/dnd.c
index
c38b94f
..
6f55e95
100644
(file)
--- 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])