code: drawterm

Download patch

ref: c4faf3aa90c2a9d326eddec8e4aa23d5e2c68e16
parent: e40ce258bfbdb7a27dfcf79e7c72f8861d2ff54d
author: joe <devnull@localhost>
date: Thu Apr 23 09:14:44 EDT 2020

x11 set wm properties needs a display flush to work

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -352,6 +352,7 @@
 		&normalhints,		/* XA_WM_NORMAL_HINTS */
 		&hints,			/* XA_WM_HINTS */
 		&classhints);		/* XA_WM_CLASS */
+	XFlush(xdisplay);
 	if ((wmpid = XInternAtom(xdisplay, "_NET_WM_PID", False)) != None) {
 		pid = (unsigned long) getpid();
 		XChangeProperty(xdisplay, xdrawable,
@@ -361,8 +362,8 @@
 			PropModeReplace, /* int mode */
 			(uchar *)&pid, /* unsigned char * data */
 			1); /* int nelements */
+		XFlush(xdisplay);
 	}
-	XFlush(xdisplay);
 	
 	/*
 	 * put the window on the screen