Codebase list i3-gaps / e6202d4
Apply compatible changes from clang-format 6.0.1 These are the changes that clang-format 6.0.1 makes to the codebase that clang-format-3.8 doesn't change back. Useful for those that use a more recent version of clang-format in their local machines. Orestis Floros 5 years ago
4 changed file(s) with 7 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
950950 /* Strip off the highest bit (set if the event is generated) */
951951 int type = (event->response_type & 0x7F);
952952
953 /* TODO: handle mappingnotify */
953954 switch (type) {
954955 case XCB_KEY_PRESS:
955956 handle_key_press(NULL, conn, (xcb_key_press_event_t *)event);
956957 break;
957958
958 /* TODO: handle mappingnotify */
959
960959 case XCB_BUTTON_PRESS:
961960 handle_button_press((xcb_button_press_event_t *)event);
962961 break;
5959
6060 xcb_alloc_color_reply_t *reply;
6161
62 reply = xcb_alloc_color_reply(conn, xcb_alloc_color(conn, root_screen->default_colormap,
63 r16, g16, b16),
62 reply = xcb_alloc_color_reply(conn, xcb_alloc_color(conn, root_screen->default_colormap, r16, g16, b16),
6463 NULL);
6564
6665 if (!reply) {
790790 * rect of the client, the event and the new coordinates (x, y).
791791 *
792792 */
793 drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_window_t
794 confine_to,
793 drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_window_t confine_to,
795794 border_t border, int cursor, callback_t callback, const void *extra) {
796795 xcb_cursor_t xcursor = (cursor && xcursor_supported) ? xcursor_get_cursor(cursor) : XCB_NONE;
797796
11401140 }
11411141
11421142 if (prop == NULL) {
1143 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn,
1144 false, window, XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 0, 32),
1143 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 0, 32),
11451144 NULL);
11461145 if (prop == NULL)
11471146 return false;
11641163 return false;
11651164
11661165 if (prop == NULL) {
1167 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn,
1168 false, window, A_WM_CLIENT_LEADER, XCB_ATOM_WINDOW, 0, 32),
1166 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, A_WM_CLIENT_LEADER, XCB_ATOM_WINDOW, 0, 32),
11691167 NULL);
11701168 if (prop == NULL)
11711169 return false;
12651263 return false;
12661264
12671265 if (prop == NULL) {
1268 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn,
1269 false, window, XCB_ATOM_WM_CLASS, XCB_ATOM_STRING, 0, 32),
1266 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, XCB_ATOM_WM_CLASS, XCB_ATOM_STRING, 0, 32),
12701267 NULL);
12711268
12721269 if (prop == NULL)
12891286 return false;
12901287
12911288 if (prop == NULL) {
1292 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn,
1293 false, window, A__MOTIF_WM_HINTS, XCB_GET_PROPERTY_TYPE_ANY, 0, 5 * sizeof(uint64_t)),
1289 prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn, false, window, A__MOTIF_WM_HINTS, XCB_GET_PROPERTY_TYPE_ANY, 0, 5 * sizeof(uint64_t)),
12941290 NULL);
12951291
12961292 if (prop == NULL)