diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:51:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-28 17:51:09 +0000 |
| commit | ec2ad7755fb65c809214d8e3615ad46f1a3ddba0 (patch) | |
| tree | 057910dda8a5c82be64c937850011d4658a2a7b5 /render.c | |
| parent | render: 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.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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); |
