extra/lightbar/windows.c: Format with clang-format
BRANCH=none
TEST=none
@@ -42,8 +42,8 @@ void init_windows(void)
/* Get a colormap */
colormap_id = xcb_generate_id(c);
- xcb_create_colormap(c, XCB_COLORMAP_ALLOC_NONE,
- colormap_id, screen->root, screen->root_visual);
+ xcb_create_colormap(c, XCB_COLORMAP_ALLOC_NONE, colormap_id,
+ screen->root, screen->root_visual);
/* Create foreground GC */
foreground = xcb_generate_id(c);
@@ -101,10 +101,8 @@ void change_gc_color(uint16_t red, uint16_t green, uint16_t blue)
uint32_t values[2];
xcb_alloc_color_reply_t *reply;
- reply = xcb_alloc_color_reply(c,
- xcb_alloc_color(c, colormap_id,
- red, green, blue),
- NULL);
+ reply = xcb_alloc_color_reply(
+ c, xcb_alloc_color(c, colormap_id, red, green, blue), NULL);
assert(reply);
mask = XCB_GC_FOREGROUND;
@@ -135,8 +133,7 @@ void update_window(void)
rect.width = w;
rect.height = win_h;
- change_gc_color(copyleds[i][0],
- copyleds[i][1],
+ change_gc_color(copyleds[i][0], copyleds[i][1],
copyleds[i][2]);
xcb_poly_fill_rectangle(c, win, foreground, 1, &rect);
@@ -184,8 +181,6 @@ void setrgb(int led, int red, int green, int blue)
/*****************************************************************************/
/* lb_common stubs */
-
-
/* Brightness serves no purpose here. It's automatic on the Chromebook. */
static int brightness = 0xc0;
void lb_set_brightness(unsigned int newval)
@@ -245,7 +240,6 @@ int lb_power(int enabled)
return fake_power;
}
-
/*****************************************************************************/
/* Event handling stuff */
@@ -257,7 +251,6 @@ void *entry_windows(void *ptr)
int chg = 1;
while ((e = xcb_wait_for_event(c))) {
-
switch (e->response_type & ~0x80) {
case XCB_EXPOSE:
ev = (xcb_expose_event_t *)e;
