X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Faspect.c;h=1ae3a859f45e65c8e6feb6a15340594cd9aacb13;hb=c1d21a1a6d88189ab3c5569b2b776d846bb6c11a;hp=c5046dd95256f36d73ae8222e05362423c7cfa45;hpb=92bc846ce16fe5fb63c2b4b38a780489e2979b11;p=chaz%2Fopenbox diff --git a/tests/aspect.c b/tests/aspect.c index c5046dd9..1ae3a859 100644 --- a/tests/aspect.c +++ b/tests/aspect.c @@ -1,3 +1,21 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + aspect.c for the Openbox window manager + Copyright (c) 2003-2007 Dana Jansens + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + #include #include #include @@ -25,7 +43,7 @@ int main () { x, y, w, h, 10, CopyFromParent, CopyFromParent, CopyFromParent, xswamask, &xswa); - XSetWindowBackground(display,win,WhitePixel(display,0)); + XSetWindowBackground(display,win,WhitePixel(display,0)); size.flags = PAspect; size.min_aspect.x = 3; @@ -33,7 +51,7 @@ int main () { size.max_aspect.x = 3; size.max_aspect.y = 3; XSetWMNormalHints(display, win, &size); - + XMapWindow(display, win); XFlush(display);