diff options
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 078cb8b8..50134aae 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -123,7 +123,7 @@ static void handle_seat_container_destroy(struct wl_listener *listener, | |||
123 | 123 | ||
124 | static struct sway_seat_container *seat_container_from_container( | 124 | static struct sway_seat_container *seat_container_from_container( |
125 | struct sway_seat *seat, struct sway_container *con) { | 125 | struct sway_seat *seat, struct sway_container *con) { |
126 | if (con->type < C_WORKSPACE) { | 126 | if (con->type == C_ROOT || con->type == C_OUTPUT) { |
127 | // these don't get seat containers ever | 127 | // these don't get seat containers ever |
128 | return NULL; | 128 | return NULL; |
129 | } | 129 | } |
@@ -473,7 +473,7 @@ struct sway_container *seat_get_focus_by_type(struct sway_seat *seat, | |||
473 | 473 | ||
474 | struct sway_seat_container *current = NULL; | 474 | struct sway_seat_container *current = NULL; |
475 | wl_list_for_each(current, &seat->focus_stack, link) { | 475 | wl_list_for_each(current, &seat->focus_stack, link) { |
476 | if (type != C_TYPES && container->type != type) { | 476 | if (current->container->type != type && type != C_TYPES) { |
477 | continue; | 477 | continue; |
478 | } | 478 | } |
479 | 479 | ||