skip all events but the last one */
if (event->count != 0)
return 1;
+ LOG("window = %08x\n", event->window);
Client *client = table_get(byParent, event->window);
if (client == NULL) {
return 1;
}
- LOG("handle_expose_event()\n");
+ LOG("got client %s\n", client->name);
if (client->container->mode != MODE_STACK)
decorate_window(conn, client, client->frame, client->titlegc, 0);
else {
xcb_change_gc_single(conn, client->titlegc, XCB_GC_FOREGROUND, get_colorpixel(conn, "#000000"));
xcb_rectangle_t crect = {2, 0, client->rect.width - (2 + 2), client->rect.height - 2};
xcb_poly_fill_rectangle(conn, client->frame, client->titlegc, 1, &crect);
-
- xcb_flush(conn);
}
+ xcb_flush(conn);
return 1;
}