@ -44,9 +44,6 @@ static bool tiling_resize_for_border(Con *con, border_t border, xcb_button_press
|
||||
case BORDER_BOTTOM:
|
||||
search_direction = D_DOWN;
|
||||
break;
|
||||
default:
|
||||
assert(false);
|
||||
break;
|
||||
}
|
||||
|
||||
bool res = resize_find_tiling_participants(&first, &second, search_direction, false);
|
||||
|
12
src/con.c
12
src/con.c
@ -1413,20 +1413,16 @@ orientation_t con_orientation(Con *con) {
|
||||
return HORIZ;
|
||||
|
||||
case L_DEFAULT:
|
||||
DLOG("Someone called con_orientation() on a con with L_DEFAULT, this is a bug in the code.\n");
|
||||
ELOG("Someone called con_orientation() on a con with L_DEFAULT, this is a bug in the code.\n");
|
||||
assert(false);
|
||||
return HORIZ;
|
||||
|
||||
case L_DOCKAREA:
|
||||
case L_OUTPUT:
|
||||
DLOG("con_orientation() called on dockarea/output (%d) container %p\n", con->layout, con);
|
||||
assert(false);
|
||||
return HORIZ;
|
||||
|
||||
default:
|
||||
DLOG("con_orientation() ran into default\n");
|
||||
ELOG("con_orientation() called on dockarea/output (%d) container %p\n", con->layout, con);
|
||||
assert(false);
|
||||
}
|
||||
/* should not be reached */
|
||||
assert(false);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -820,7 +820,7 @@ static void handle_client_message(xcb_client_message_event_t *event) {
|
||||
Rect r = {
|
||||
config.default_border_width, /* left */
|
||||
config.default_border_width, /* right */
|
||||
config.font.height + 5, /* top */
|
||||
render_deco_height(), /* top */
|
||||
config.default_border_width /* bottom */
|
||||
};
|
||||
xcb_change_property(
|
||||
|
@ -268,10 +268,6 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
|
||||
case CT_DOCKAREA:
|
||||
ystr("dockarea");
|
||||
break;
|
||||
default:
|
||||
DLOG("About to dump unknown container type=%d. This is a bug.\n", con->type);
|
||||
assert(false);
|
||||
break;
|
||||
}
|
||||
|
||||
/* provided for backwards compatibility only. */
|
||||
|
Reference in New Issue
Block a user