6 #include "x11-memdraw.h"
11 XMapRaised(_x.display, _x.drawable);
14 * Should not be using kbdcon since we're not running
15 * in the kbdproc, but this is necessary to make the keyboard
16 * take focus if the window is hidden when drawtopwindow
17 * is called. Let's hope that XSetInputFocus is only a write
18 * on the fd, and so it's okay to do even though the kbdproc
19 * is reading at the same time.
21 XSetInputFocus(_x.kbdcon, _x.drawable, RevertToPointerRoot,
27 drawresizewindow(Rectangle r)
29 // XConfigureRequestEvent e;
33 memset(&e, 0, sizeof e);
34 value_mask = CWWidth|CWHeight;
39 XConfigureWindow(_x.display, _x.drawable, value_mask, &e);