From: Orestis Floros Date: Sat, 31 Mar 2018 23:11:29 +0000 (+0300) Subject: Use con_orientation instead of ternary operator X-Git-Tag: 4.16~104^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F3215%2Fhead;p=i3%2Fi3 Use con_orientation instead of ternary operator --- diff --git a/src/click.c b/src/click.c index f4727f28..656fb8db 100644 --- a/src/click.c +++ b/src/click.c @@ -233,7 +233,7 @@ static int route_click(Con *con, xcb_button_press_event_t *event, const bool mod event->detail == XCB_BUTTON_SCROLL_LEFT || event->detail == XCB_BUTTON_SCROLL_RIGHT)) { DLOG("Scrolling on a window decoration\n"); - orientation_t orientation = (con->parent->layout == L_STACKED ? VERT : HORIZ); + orientation_t orientation = con_orientation(con->parent); /* Use the focused child of the tabbed / stacked container, not the * container the user scrolled on. */ Con *focused = con->parent;