]> git.sur5r.net Git - i3/i3/commitdiff
Use con_orientation instead of ternary operator 3215/head
authorOrestis Floros <orestisf1993@gmail.com>
Sat, 31 Mar 2018 23:11:29 +0000 (02:11 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Sun, 1 Apr 2018 09:18:27 +0000 (12:18 +0300)
src/click.c

index f4727f28f67a2640cc3c05405cee3e29ea8e7485..656fb8db399d03bb0b6c3b9da4cbf4afd05177f1 100644 (file)
@@ -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;