@ -545,6 +545,7 @@ setup(void)
XIM xim ;
XIM xim ;
Window w , dw , * dws ;
Window w , dw , * dws ;
XWindowAttributes wa ;
XWindowAttributes wa ;
XClassHint ch = { " dmenu " , " dmenu " } ;
# ifdef XINERAMA
# ifdef XINERAMA
XineramaScreenInfo * info ;
XineramaScreenInfo * info ;
Window pw ;
Window pw ;
@ -613,6 +614,7 @@ setup(void)
win = XCreateWindow ( dpy , parentwin , x , y , mw , mh , 0 ,
win = XCreateWindow ( dpy , parentwin , x , y , mw , mh , 0 ,
CopyFromParent , CopyFromParent , CopyFromParent ,
CopyFromParent , CopyFromParent , CopyFromParent ,
CWOverrideRedirect | CWBackPixel | CWEventMask , & swa ) ;
CWOverrideRedirect | CWBackPixel | CWEventMask , & swa ) ;
XSetClassHint ( dpy , win , & ch ) ;
/* open input methods */
/* open input methods */
xim = XOpenIM ( dpy , NULL , NULL , NULL ) ;
xim = XOpenIM ( dpy , NULL , NULL , NULL ) ;