]> Dogcows Code - chaz/openbox/blobdiff - tests/icons.c
remove trailing whitespace
[chaz/openbox] / tests / icons.c
index 650a32a4fffb0aaf3ece40b012172bcf72e3ecc2..315a10fb23d2b1012ffcebff7768838df4c2e0e4 100644 (file)
@@ -1,19 +1,19 @@
 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
 
-icons.c for the Openbox window manager
-Copyright (c) 2003        Ben Jansens
+   icons.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 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.
+   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.
+   See the COPYING file for a copy of the GNU General Public License.
 */
 
 #include <X11/Xlib.h>
@@ -44,7 +44,7 @@ Window findClient(Display *d, Window win)
     XGetWindowProperty(d, win, state, 0, 1,
                        False, state, &ret_type, &ret_format,
                        &ret_items, &ret_bytesleft,
-                       (unsigned char**) &prop_return); 
+                       (unsigned char**) &prop_return);
     if (ret_type == None || ret_items < 1)
         return None;
     return win; // found it!
@@ -69,9 +69,9 @@ int main(int argc, char **argv)
     Pixmap p;
     Cursor cur;
     XEvent ev;
-  
+
     printf("Click on a window with an icon...\n");
-  
+
     //int id = strtol(argv[1], NULL, 16);
     XUngrabPointer(d, CurrentTime);
     cur = XCreateFontCursor(d, XC_crosshair);
@@ -87,10 +87,10 @@ int main(int argc, char **argv)
     }
 
     printf("Using window 0x%lx\n", id);
-  
+
     do {
         unsigned int w, h;
-    
+
         XGetWindowProperty(d, id, net_wm_icon, offset++, 1,
                            False, XA_CARDINAL, &ret_type, &ret_format,
                            &ret_items, &ret_bytesleft,
@@ -124,7 +124,7 @@ int main(int argc, char **argv)
         offset += w*h;
 
         printf("Found icon with size %dx%d\n", w, h);
-  
+
         i[image] = XCreateImage(d, DefaultVisual(d, s), DefaultDepth(d, s),
                                 ZPixmap, 0, NULL, w, h, 32, 0);
         assert(i[image]);
@@ -140,7 +140,7 @@ int main(int argc, char **argv)
             unsigned char bgr = 0;
             unsigned char bgg = 0;
             unsigned char bgb = 0;
-      
+
             r = bgr + (r - bgr) * alpha / 256;
             g = bgg + (g - bgg) * alpha / 256;
             b = bgb + (b - bgb) * alpha / 256;
@@ -172,7 +172,7 @@ int main(int argc, char **argv)
         x += i[j]->width;
         XDestroyImage(i[j]);
     }
-    
+
     XSetWindowBackgroundPixmap(d, win, p);
     XClearWindow(d, win);
 
This page took 0.022753 seconds and 4 git commands to generate.