From 96ee336a0b2096aafeb41a32e8748ab30d8a6e89 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Sun, 1 Apr 2018 02:11:29 +0300 Subject: [PATCH] Use con_orientation instead of ternary operator --- src/click.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;