dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 53798dfbff8c8352e42be2f9c400cb4b66ca28fe
parent 5d66ea8a99a1638b4210b2d2be9ccc644691eb44
Author: Devin J. Pohly <djpohly@gmail.com>
Date:   Thu, 23 Jul 2020 19:32:10 -0400

fix WLR_SURFACE macro

Diffstat:
Mdwl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -42,7 +42,7 @@ #define LENGTH(X) (sizeof X / sizeof X[0]) #define END(A) ((A) + LENGTH(A)) #define TAGMASK ((1 << LENGTH(tags)) - 1) -#define WLR_SURFACE(C) (c->isx11 ? c->xwayland_surface->surface : c->xdg_surface->surface) +#define WLR_SURFACE(C) ((C)->isx11 ? (C)->xwayland_surface->surface : (C)->xdg_surface->surface) /* enums */ enum { CurNormal, CurMove, CurResize }; /* cursor */