diff options
| author | Russ Cox <rsc@golang.org> | 2020-01-12 14:53:46 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2020-01-13 16:46:14 -0500 |
| commit | 50923426bf684402160dd7748f14560afd447b73 (patch) | |
| tree | ddabd607a5936424e70920e4aed7790bec61cca1 /src/cmd/devdraw/x11-wsys.c | |
| parent | 892b3c4687eacf6b090bb9a5196ce882e113c423 (diff) | |
| download | plan9port-50923426bf684402160dd7748f14560afd447b73.tar.gz plan9port-50923426bf684402160dd7748f14560afd447b73.zip | |
devdraw: x11 working again
Need to think a bit more about locking,
but overall it's a working devdraw.
Multiclient mode may not be working
but nothing is using it yet.
Diffstat (limited to 'src/cmd/devdraw/x11-wsys.c')
| -rw-r--r-- | src/cmd/devdraw/x11-wsys.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/cmd/devdraw/x11-wsys.c b/src/cmd/devdraw/x11-wsys.c deleted file mode 100644 index 82a7d32c..00000000 --- a/src/cmd/devdraw/x11-wsys.c +++ /dev/null @@ -1,45 +0,0 @@ -#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 = CWX|CWY|CWWidth|CWHeight; - e.width = Dx(r); - e.height = Dy(r); - XConfigureWindow(_x.display, _x.drawable, value_mask, &e); - XFlush(_x.display); -} - -void -_xmovewindow(Rectangle r) -{ - XWindowChanges e; - int value_mask; - - memset(&e, 0, sizeof e); - value_mask = CWX|CWY|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); -} |
