diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-10-12 22:42:23 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-10-12 22:42:23 -0400 |
| commit | 82b9eb54910ec73f5004c61faafe439d3168ea1a (patch) | |
| tree | 92f7a6ccf259d521a3f11c16a924a5a093a0751b | |
| parent | 3b84ab76e0a1e0215fdb2402905227a648b246ac (diff) | |
Overwrite alpha when drawing borders
This does two important things when using alpha:
1. At corners, borders don't double in opacity
2. Foreground elements (text) can be made transparent and you can see
fully through to the wallpaper
| -rw-r--r-- | sway/border.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/border.c b/sway/border.c index db1a3836..c96ae6fe 100644 --- a/sway/border.c +++ b/sway/border.c @@ -46,6 +46,7 @@ static cairo_t *create_border_buffer(swayc_t *view, struct wlc_geometry g, cairo return NULL; } cr = cairo_create(*surface); + cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE); if (cairo_status(cr) != CAIRO_STATUS_SUCCESS) { cairo_surface_destroy(*surface); border_clear(view->border); |
