disable changing focus on click for tabbed layout

This commit is contained in:
Dudemanguy911 2018-05-05 17:30:50 +00:00
parent 505e34b6ef
commit 63684cb2b0

View file

@ -222,7 +222,9 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
seat_set_focus(cursor->seat, cont); seat_set_focus(cursor->seat, cont);
} }
} else { } else {
seat_set_focus(cursor->seat, cont); if (cont && cont->parent->layout != L_TABBED) {
seat_set_focus(cursor->seat, cont);
}
} }
wlr_seat_pointer_notify_button(cursor->seat->wlr_seat, wlr_seat_pointer_notify_button(cursor->seat->wlr_seat,