-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.
XGetWindowProperty(d, win, state, 0, 1,
False, state, &ret_type, &ret_format,
&ret_items, &ret_bytesleft,
XGetWindowProperty(d, win, state, 0, 1,
False, state, &ret_type, &ret_format,
&ret_items, &ret_bytesleft,
//int id = strtol(argv[1], NULL, 16);
XUngrabPointer(d, CurrentTime);
cur = XCreateFontCursor(d, XC_crosshair);
//int id = strtol(argv[1], NULL, 16);
XUngrabPointer(d, CurrentTime);
cur = XCreateFontCursor(d, XC_crosshair);
XGetWindowProperty(d, id, net_wm_icon, offset++, 1,
False, XA_CARDINAL, &ret_type, &ret_format,
&ret_items, &ret_bytesleft,
XGetWindowProperty(d, id, net_wm_icon, offset++, 1,
False, XA_CARDINAL, &ret_type, &ret_format,
&ret_items, &ret_bytesleft,
i[image] = XCreateImage(d, DefaultVisual(d, s), DefaultDepth(d, s),
ZPixmap, 0, NULL, w, h, 32, 0);
assert(i[image]);
i[image] = XCreateImage(d, DefaultVisual(d, s), DefaultDepth(d, s),
ZPixmap, 0, NULL, w, h, 32, 0);
assert(i[image]);
r = bgr + (r - bgr) * alpha / 256;
g = bgg + (g - bgg) * alpha / 256;
b = bgb + (b - bgb) * alpha / 256;
r = bgr + (r - bgr) * alpha / 256;
g = bgg + (g - bgg) * alpha / 256;
b = bgb + (b - bgb) * alpha / 256;