new draw server

This commit is contained in:
rsc 2006-06-25 19:18:39 +00:00
parent f97f537440
commit c66b52501b
23 changed files with 5538 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#include <u.h>
#include "x11-inc.h"
#include <libc.h>
#include <draw.h>
#include <memdraw.h>
#include "x11-memdraw.h"
void
_xtopwindow(void)
{
XMapRaised(_x.display, _x.drawable);
XSetInputFocus(_x.display, _x.drawable, RevertToPointerRoot,
CurrentTime);
XFlush(_x.display);
}
void
_xresizewindow(Rectangle r)
{
XWindowChanges e;
int value_mask;
memset(&e, 0, sizeof e);
value_mask = CWWidth|CWHeight;
e.width = Dx(r);
e.height = Dy(r);
XConfigureWindow(_x.display, _x.drawable, value_mask, &e);
XFlush(_x.display);
}