shithub: lola

Download patch

ref: c57b0fc5c3450b175f0896e0238ea3431fde6448
parent: 95fa0cb9868e932653e84533fe41691ad4e1579e
author: aap <aap@papnet.eu>
date: Tue Aug 20 08:50:24 EDT 2024

fix null ptr bug

--- a/main.c
+++ b/main.c
@@ -689,7 +689,7 @@
 				/* inactive window */
 				wsetcursor(w);
 				if(mctl->buttons & 7 ||
-				   mctl->buttons & (8|16) && focused->mouseopen){
+				   mctl->buttons & (8|16) && focused && focused->mouseopen){
 					wraise(w);
 					wfocus(w);
 					if(mctl->buttons & 1)