whitespace

This commit is contained in:
Christopher Jeffrey 2011-11-04 16:18:56 -05:00
parent 7ab9b06a04
commit fbc6d7da0b
1 changed files with 14 additions and 11 deletions

View File

@ -726,6 +726,7 @@ solid_picture(Display *dpy, Bool argb, double a,
c.red = r * 0xffff; c.red = r * 0xffff;
c.green = g * 0xffff; c.green = g * 0xffff;
c.blue = b * 0xffff; c.blue = b * 0xffff;
XRenderFillRectangle(dpy, PictOpSrc, picture, &c, 0, 0, 1, 1); XRenderFillRectangle(dpy, PictOpSrc, picture, &c, 0, 0, 1, 1);
XFreePixmap(dpy, pixmap); XFreePixmap(dpy, pixmap);
@ -799,9 +800,10 @@ root_tile_f(Display *dpy) {
pixmap = None; pixmap = None;
for (p = 0; background_props[p]; p++) { for (p = 0; background_props[p]; p++) {
if (XGetWindowProperty(dpy, root, XInternAtom( if (XGetWindowProperty(dpy, root,
dpy, background_props[p], False), 0, 4, False, AnyPropertyType, XInternAtom(dpy, background_props[p], False),
&actual_type, &actual_format, &nitems, &bytes_after, &prop 0, 4, False, AnyPropertyType, &actual_type,
&actual_format, &nitems, &bytes_after, &prop
) == Success ) == Success
&& actual_type == XInternAtom(dpy, "PIXMAP", False) && actual_type == XInternAtom(dpy, "PIXMAP", False)
&& actual_format == 32 && nitems == 1) { && actual_format == 32 && nitems == 1) {
@ -1717,7 +1719,7 @@ static void
finish_destroy_win(Display *dpy, Window id) { finish_destroy_win(Display *dpy, Window id) {
win **prev, *w; win **prev, *w;
for (prev = &list; (w = *prev); prev = &w->next) for (prev = &list; (w = *prev); prev = &w->next) {
if (w->id == id && w->destroyed) { if (w->id == id && w->destroyed) {
finish_unmap_win(dpy, w); finish_unmap_win(dpy, w);
*prev = w->next; *prev = w->next;
@ -1748,6 +1750,7 @@ finish_destroy_win(Display *dpy, Window id) {
free(w); free(w);
break; break;
} }
}
} }
#if HAS_NAME_WINDOW_PIXMAP #if HAS_NAME_WINDOW_PIXMAP
@ -1838,10 +1841,10 @@ damage_win(Display *dpy, XDamageNotifyEvent *de) {
w->damage_bounds.height); w->damage_bounds.height);
#endif #endif
if (w->damage_bounds.x <= 0 && if (w->damage_bounds.x <= 0
w->damage_bounds.y <= 0 && && w->damage_bounds.y <= 0
w->a.width <= w->damage_bounds.x + w->damage_bounds.width && && w->a.width <= w->damage_bounds.x + w->damage_bounds.width
w->a.height <= w->damage_bounds.y + w->damage_bounds.height) { && w->a.height <= w->damage_bounds.y + w->damage_bounds.height) {
clip_changed = True; clip_changed = True;
if (win_type_fade[w->window_type]) { if (win_type_fade[w->window_type]) {
set_fade(dpy, w, 0, get_opacity_percent(dpy, w), set_fade(dpy, w, 0, get_opacity_percent(dpy, w),
@ -1859,7 +1862,7 @@ damage_win(Display *dpy, XDamageNotifyEvent *de) {
static int static int
error(Display *dpy, XErrorEvent *ev) { error(Display *dpy, XErrorEvent *ev) {
int o; int o;
const char *name = 0; const char *name = "Unknown";
if (should_ignore(dpy, ev->serial)) { if (should_ignore(dpy, ev->serial)) {
return 0; return 0;
@ -2286,10 +2289,10 @@ main(int argc, char **argv) {
/* dump_wins(); */ /* dump_wins(); */
do { do {
if (!QLength(dpy)) { if (!QLength(dpy)) {
if (poll(&ufd, 1, fade_timeout()) == 0) { if (poll(&ufd, 1, fade_timeout()) == 0) {
run_fades(dpy); run_fades(dpy);
break; break;
} }
} }
XNextEvent(dpy, &ev); XNextEvent(dpy, &ev);