diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2015-03-01 17:16:03 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2015-03-01 17:16:03 +0100 |
commit | 091f1db39ab2069e850718b7b42327f697a15060 (patch) | |
tree | d3eb3262e4eb388b46c99dd5888011ca0f011b57 /i3-input | |
parent | 0876bd621f91fdb8d7e7c649e6a6973accb9c95b (diff) | |
download | i3-091f1db39ab2069e850718b7b42327f697a15060.tar.gz i3-091f1db39ab2069e850718b7b42327f697a15060.zip |
run clang-format (3.5.0)
Not quite sure why there are so many differences. Perhaps we’ve gotten
out of the habit of running clang-format after every change.
I guess it’d be best to have a travis hook that runs clang-format for us
and reports any problems on pull requests.
Diffstat (limited to 'i3-input')
-rw-r--r-- | i3-input/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i3-input/main.c b/i3-input/main.c index 9f3ff174..7d523190 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -130,9 +130,9 @@ static int handle_expose(void *data, xcb_connection_t *conn, xcb_expose_event_t /* re-draw the background */ xcb_rectangle_t border = {0, 0, 500, font.height + 8}, inner = {2, 2, 496, font.height + 8 - 4}; - xcb_change_gc(conn, pixmap_gc, XCB_GC_FOREGROUND, (uint32_t[]) {get_colorpixel("#FF0000")}); + xcb_change_gc(conn, pixmap_gc, XCB_GC_FOREGROUND, (uint32_t[]){get_colorpixel("#FF0000")}); xcb_poly_fill_rectangle(conn, pixmap, pixmap_gc, 1, &border); - xcb_change_gc(conn, pixmap_gc, XCB_GC_FOREGROUND, (uint32_t[]) {get_colorpixel("#000000")}); + xcb_change_gc(conn, pixmap_gc, XCB_GC_FOREGROUND, (uint32_t[]){get_colorpixel("#000000")}); xcb_poly_fill_rectangle(conn, pixmap, pixmap_gc, 1, &inner); /* restore font color */ @@ -410,7 +410,7 @@ int main(int argc, char *argv[]) { XCB_WINDOW_CLASS_INPUT_OUTPUT, XCB_WINDOW_CLASS_COPY_FROM_PARENT, /* copy visual from parent */ XCB_CW_BACK_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK, - (uint32_t[]) { + (uint32_t[]){ 0, /* back pixel: black */ 1, /* override redirect: don’t manage this window */ XCB_EVENT_MASK_EXPOSURE}); |