Blob


1 #include <u.h>
2 #include "x11-inc.h"
3 #include <libc.h>
4 #include <draw.h>
5 #include <memdraw.h>
6 #include "x11-memdraw.h"
8 void
9 drawtopwindow(void)
10 {
11 XMapRaised(_x.display, _x.drawable);
12 XFlush(_x.display);
13 XSetInputFocus(_x.display, _x.drawable, RevertToPointerRoot,
14 CurrentTime);
15 XFlush(_x.display);
16 }
18 void
19 drawresizewindow(Rectangle r)
20 {
21 // XConfigureRequestEvent e;
22 XWindowChanges e;
23 int value_mask;
25 memset(&e, 0, sizeof e);
26 value_mask = CWWidth|CWHeight;
27 // e.x = r.min.x;
28 // e.y = r.min.y;
29 e.width = Dx(r);
30 e.height = Dy(r);
31 XConfigureWindow(_x.display, _x.drawable, value_mask, &e);
32 }