dwl

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

commit ad9b3bc65d9e4802d2982bf09938783cfb7ee1b3
parent 83f60e89b0ce395511a91f3f1944015668730758
Author: Devin J. Pohly <djpohly@gmail.com>
Date:   Tue, 18 Aug 2020 19:43:42 -0500

handle NULL return from backend_autocreate

Fixes #44.

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

diff --git a/dwl.c b/dwl.c @@ -1460,7 +1460,8 @@ setup(void) * backend uses the renderer, for example, to fall back to software cursors * if the backend does not support hardware cursors (some older GPUs * don't). */ - backend = wlr_backend_autocreate(dpy, NULL); + if (!(backend = wlr_backend_autocreate(dpy, NULL))) + BARF("couldn't create backend"); /* If we don't provide a renderer, autocreate makes a GLES2 renderer for us. * The renderer is responsible for defining the various pixel formats it