1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <u.h> #include "x11-inc.h" #include <libc.h> #include <draw.h> #include <memdraw.h> #include "x11-memdraw.h" void drawtopwindow(void) { XMapRaised(_x.display, _x.drawable); XFlush(_x.display); XSetInputFocus(_x.display, _x.drawable, RevertToPointerRoot, CurrentTime); XFlush(_x.display); }