9wm (1.2-9) event.c

Summary

 event.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

--- 9wm-1.2.orig/event.c
+++ 9wm-1.2/event.c
@@ -1,4 +1,5 @@
 /* Copyright (c) 1994-1996 David Hogan, see README for licence details */
+#include <stdlib.h>
 #include <stdio.h>
 #include <X11/X.h>
 #include <X11/Xos.h>
@@ -200,7 +201,7 @@
 		XMapWindow(dpy, c->window);
 		XMapRaised(dpy, c->parent);
 		top(c);
-		setstate(c, NormalState);
+		setwinstate(c, NormalState);
 		if (c->trans != None && current && c->trans == current->window)
 				active(c);
 		break;