From 97d5f51e588901a7f855ff172d1f6e7d16da96ea Mon Sep 17 00:00:00 2001 From: Ollie Date: Sat, 30 May 2026 11:52:32 +0200 Subject: [PATCH] fix: resizebar texture relief and indicator brightness on Wayland Two issues: (1) Texture was rendered with WREL_RAISED which added a thick bevel border, making the 8px-tall resizebar appear too small. Changed to WREL_FLAT to match X11 behavior. (2) Corner indicator light color used +40 per channel but X11 uses +80 (ROperateLine RAddOperation with cdelta=80). Changed light delta from +40 to +80 so indicators are as visible as X11. --- src/backend/wayland/wl_backend.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index c2d43da..4a4a160 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -4957,7 +4957,7 @@ wl_frame_paint(struct WFrameWindow *fwin) int rb_h = fwin->bottom_width; WTexture *tex = fwin->resizebar_texture[0]; - RImage *img = wTextureRenderImage(tex, rb_w, rb_h, WREL_RAISED); + RImage *img = wTextureRenderImage(tex, rb_w, rb_h, WREL_FLAT); if (img) { uint32_t *dst = pixman_image_get_data(fb->image); int dst_stride = pixman_image_get_stride(fb->image) / 4; @@ -5006,9 +5006,9 @@ wl_frame_paint(struct WFrameWindow *fwin) (((unsigned)((bg > 40) ? (bg - 40) : 0) << 8)) | ((unsigned)((bb > 40) ? (bb - 40) : 0)); uint32_t light_px = 0xFF000000U | - (((unsigned)((br < 215) ? (br + 40) : 255) << 16)) | - (((unsigned)((bg < 215) ? (bg + 40) : 255) << 8)) | - ((unsigned)((bb < 215) ? (bb + 40) : 255)); + (((unsigned)((br < 175) ? (br + 80) : 255) << 16)) | + (((unsigned)((bg < 175) ? (bg + 80) : 255) << 8)) | + ((unsigned)((bb < 175) ? (bb + 80) : 255)); /* Top bevel: dim at y=0, light at y=1 */ for (int x = 0; x < rb_w; x++) {