aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-18 10:29:46 -0400
committerGitHub <noreply@github.com>2018-08-18 10:29:46 -0400
commit744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef (patch)
tree7a5ebeae1d5e15f047f09698978fa84f61756faa /sway/input
parentd4a32800d5eb938a769d7802b23f4a0f43cadaef (diff)
parentd6cd79c342495738fc23fbfbf19a01e73cdc42dc (diff)
downloadsway-744724b3cb28c2ee9d265dcbf78b1cbf2b2e3fef.tar.xz
Merge pull request #2473 from RyanDwyer/iterators-per-type
Implement iterators per container type
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/seat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 9d46e760..d35c62a0 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -313,9 +313,6 @@ static void handle_new_drag_icon(struct wl_listener *listener, void *data) {
static void collect_focus_iter(struct sway_container *con, void *data) {
struct sway_seat *seat = data;
- if (con->type > C_WORKSPACE) {
- return;
- }
struct sway_seat_container *seat_con =
seat_container_from_container(seat, con);
if (!seat_con) {
@@ -349,7 +346,8 @@ struct sway_seat *seat_create(struct sway_input_manager *input,
// init the focus stack
wl_list_init(&seat->focus_stack);
- container_for_each_descendant(&root_container, collect_focus_iter, seat);
+ root_for_each_workspace(collect_focus_iter, seat);
+ root_for_each_container(collect_focus_iter, seat);
wl_signal_add(&root_container.sway_root->events.new_container,
&seat->new_container);