X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fnoresize.c;h=c98295bddbe28b10aab52ed5733a82ed3a9216a9;hb=2ea60e77c085a724b2ec28273e24e12ece0e84f3;hp=fa920bf1952173f06247ef5b842158f2203f30e2;hpb=2442cdfd85e5229c7ee4ac49ca66a7d55ffcb919;p=chaz%2Fopenbox diff --git a/tests/noresize.c b/tests/noresize.c index fa920bf1..c98295bd 100644 --- a/tests/noresize.c +++ b/tests/noresize.c @@ -40,10 +40,10 @@ 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)); + XSetWindowBackground(display,win,WhitePixel(display,0)); size.flags = PMinSize | PMaxSize; size.max_width = 0; @@ -51,11 +51,14 @@ int main () { size.max_height = 0; 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);