aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:51:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-28 17:51:09 +0000
commitec2ad7755fb65c809214d8e3615ad46f1a3ddba0 (patch)
tree057910dda8a5c82be64c937850011d4658a2a7b5
parentrender: resize: exclude CSD borders when loading default geometry in maximized mode (diff)
render: CSDs: transparent borders
This gives the illusion that window is border-less, but still gives us surfaces the user can grab to resize the window.
-rw-r--r--render.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/render.c b/render.c
index 53bedb75..f2b2dc4e 100644
--- a/render.c
+++ b/render.c
@@ -723,9 +723,12 @@ render_csd(struct terminal *term)
}
unsigned long cookie = shm_cookie_csd(term, i);
- struct buffer *buf = shm_get_buffer(term->wl->shm, width, height, cookie);
+ struct buffer *buf = shm_get_buffer(
+ term->wl->shm, width, height, cookie);
+
+ pixman_color_t color = color_hex_to_pixman_with_alpha(
+ i == 0 ? term->colors.fg : 0x0, i == 0 ? 0xffff : 0x0);
- pixman_color_t color = color_hex_to_pixman(term->colors.fg);
if (!term->visual_focus)
pixman_color_dim(&color);
@@ -739,7 +742,7 @@ render_csd(struct terminal *term)
wl_subsurface_set_position(sub, x, y);
wl_surface_attach(surf, buf->wl_buf, 0, 0);
- wl_surface_set_opaque_region(surf, region);
+ //wl_surface_set_opaque_region(surf, region);
wl_surface_damage_buffer(surf, 0, 0, buf->width, buf->height);
wl_surface_set_buffer_scale(surf, term->scale);
wl_surface_commit(surf);