mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 07:08:07 +02:00
dnd: Clip flowers to window content area
https://bugs.freedesktop.org/show_bug.cgi?id=52420
This commit is contained in:
parent
72b0f8f2ec
commit
0fd49aa886
1 changed files with 3 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue