From 74dc60da74c62e07f0d63179da9724d705794a6d Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Jun 2006 18:59:29 +0000 Subject: bye --- src/libdraw/x11-wsys.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/libdraw/x11-wsys.c (limited to 'src/libdraw/x11-wsys.c') diff --git a/src/libdraw/x11-wsys.c b/src/libdraw/x11-wsys.c deleted file mode 100644 index 582b68e1..00000000 --- a/src/libdraw/x11-wsys.c +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "x11-inc.h" -#include -#include -#include -#include "x11-memdraw.h" - -void -drawtopwindow(void) -{ - XMapRaised(_x.display, _x.drawable); - XFlush(_x.display); - /* - * Should not be using kbdcon since we're not running - * in the kbdproc, but this is necessary to make the keyboard - * take focus if the window is hidden when drawtopwindow - * is called. Let's hope that XSetInputFocus is only a write - * on the fd, and so it's okay to do even though the kbdproc - * is reading at the same time. - */ - XSetInputFocus(_x.kbdcon, _x.drawable, RevertToPointerRoot, - CurrentTime); - XFlush(_x.kbdcon); -} - -void -drawresizewindow(Rectangle r) -{ -/* XConfigureRequestEvent e; */ - XWindowChanges e; - int value_mask; - - memset(&e, 0, sizeof e); - value_mask = CWWidth|CWHeight; -/* e.x = r.min.x; */ -/* e.y = r.min.y; */ - e.width = Dx(r); - e.height = Dy(r); - XConfigureWindow(_x.display, _x.drawable, value_mask, &e); - XFlush(_x.display); -} -- cgit v1.2.3