X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fgrav.c;h=772fec2bf6aa909bbf27c08abebd8a3e20c2bd35;hb=403483db92a290c7f89ae6cdf27ffc18a7eccd35;hp=a8dcdc31669515a48868e145ab3832c4d9446cfb;hpb=2fb7a6e4782013f7fca8a2b591aecbd54c262f07;p=chaz%2Fopenbox diff --git a/tests/grav.c b/tests/grav.c index a8dcdc31..772fec2b 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(); @@ -44,12 +44,14 @@ int main () { XSetWMNormalHints(display, win, hints); XFree(hints); - XSetWindowBackground(display,win,WhitePixel(display,0)); + XSetWindowBackground(display,win,WhitePixel(display,0)); XMapWindow(display, win); XFlush(display); - XMoveResizeWindow(display, win, 1172-600, 668-150, 600, 150); + w = 600; + h = 160; + XMoveResizeWindow(display, win, 1172-w-b*2, 668-h-b*2, w, h); XFlush(display); sleep(1); XResizeWindow(display, win, 900, 275);