From 4de28bba68d01bafc40ebb270227d5d8fe0ddd87 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 29 Jun 2018 23:07:59 +0100 Subject: [PATCH] Fix floating views not receiving frame events That happened when they were in tabbed or stacked containers. Fixes #2161 --- sway/tree/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index c9c824053..de4ce2e64 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -948,7 +948,7 @@ bool view_is_visible(struct sway_view *view) { // Check view isn't in a tabbed or stacked container on an inactive tab struct sway_seat *seat = input_manager_current_seat(input_manager); struct sway_container *container = view->swayc; - while (container->type != C_WORKSPACE) { + while (container->type != C_WORKSPACE && container->layout != L_FLOATING) { if (container->parent->layout == L_TABBED || container->parent->layout == L_STACKED) { if (seat_get_active_child(seat, container->parent) != container) {