diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-27 16:33:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-27 16:33:59 +0000 |
| commit | 01a7a9edb7617f3e0ae09a84207faa0dcdf71306 (patch) | |
| tree | 5bcbbeaf260e0f2c7ca1fcd4dc25d719f86b6df6 /tests/grav.c | |
| parent | 8e19e99ac8e5a4e7e9721b10447c4b90f17c2c8f (diff) | |
fix window gravity when there is a border width
Diffstat (limited to 'tests/grav.c')
| -rw-r--r-- | tests/grav.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/grav.c b/tests/grav.c index a8dcdc31..5ce3cfb7 100644 --- a/tests/grav.c +++ b/tests/grav.c @@ -24,7 +24,7 @@ int main () { Display *display; Window win; XEvent report; - int x=10,y=10,h=100,w=400; + int x=10,y=10,h=100,w=400,b=10; XSizeHints *hints; display = XOpenDisplay(NULL); @@ -35,7 +35,7 @@ int main () { } win = XCreateWindow(display, RootWindow(display, 0), - x, y, w, h, 10, CopyFromParent, CopyFromParent, + x, y, w, h, b, CopyFromParent, CopyFromParent, CopyFromParent, 0, NULL); hints = XAllocSizeHints(); @@ -49,7 +49,7 @@ int main () { XMapWindow(display, win); XFlush(display); - XMoveResizeWindow(display, win, 1172-600, 668-150, 600, 150); + XMoveResizeWindow(display, win, 1172-600-b*2, 668-150-b*2, 600, 150); XFlush(display); sleep(1); XResizeWindow(display, win, 900, 275); |
