X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fnoresize.c;h=ed32937a458e57aba473c86ba8afb7562884627e;hb=b30478ed7641c95ccdc5f4436faaf0eb9f9affe4;hp=fa920bf1952173f06247ef5b842158f2203f30e2;hpb=775d5da7ade2d184dfcef5c046b8d39f91804f01;p=chaz%2Fopenbox diff --git a/tests/noresize.c b/tests/noresize.c index fa920bf1..ed32937a 100644 --- a/tests/noresize.c +++ b/tests/noresize.c @@ -40,7 +40,7 @@ int main () { xswamask = CWWinGravity; win = XCreateWindow(display, RootWindow(display, 0), - x, y, w, h, 10, CopyFromParent, CopyFromParent, + x, y, w, h, 0, CopyFromParent, CopyFromParent, CopyFromParent, xswamask, &xswa); XSetWindowBackground(display,win,WhitePixel(display,0)); @@ -52,10 +52,13 @@ int main () { size.min_height = h; XSetWMNormalHints(display, win, &size); + XSelectInput(display, win, ExposureMask | StructureNotifyMask); + XMapWindow(display, win); XFlush(display); - XSelectInput(display, win, ExposureMask | StructureNotifyMask); + XMoveWindow(display, win, 10, 10); + XMoveWindow(display, win, 10, 10); while (1) { XNextEvent(display, &report);