X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fgrav.c;h=6fba13c3f6de1cc3b1ce9bff35412bf2979d1515;hb=3234a7508326f0fd7b54b7cfe0bd443f8ba35260;hp=0fe32d4983ad35cefe9e44f79c0e8b771f884038;hpb=492675fdd3427e52b80f347599d5c6ddc42f454b;p=chaz%2Fopenbox diff --git a/tests/grav.c b/tests/grav.c index 0fe32d49..6fba13c3 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,12 @@ int main () { XMapWindow(display, win); XFlush(display); - XMoveWindow(display, win, 960-1, 600-1); + 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); XSelectInput(display, win, ExposureMask | StructureNotifyMask);