diff options
-rw-r--r-- | sway/desktop/idle_inhibit_v1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/idle_inhibit_v1.c b/sway/desktop/idle_inhibit_v1.c index b981e5e5..73e46a8f 100644 --- a/sway/desktop/idle_inhibit_v1.c +++ b/sway/desktop/idle_inhibit_v1.c | |||
@@ -93,7 +93,8 @@ static bool check_active(struct sway_idle_inhibitor_v1 *inhibitor) { | |||
93 | switch (inhibitor->mode) { | 93 | switch (inhibitor->mode) { |
94 | case INHIBIT_IDLE_APPLICATION: | 94 | case INHIBIT_IDLE_APPLICATION: |
95 | // If there is no view associated with the inhibitor, assume visible | 95 | // If there is no view associated with the inhibitor, assume visible |
96 | return !inhibitor->view || view_is_visible(inhibitor->view); | 96 | return !inhibitor->view || !inhibitor->view->container || |
97 | view_is_visible(inhibitor->view); | ||
97 | case INHIBIT_IDLE_FOCUS:; | 98 | case INHIBIT_IDLE_FOCUS:; |
98 | struct sway_seat *seat = NULL; | 99 | struct sway_seat *seat = NULL; |
99 | wl_list_for_each(seat, &server.input->seats, link) { | 100 | wl_list_for_each(seat, &server.input->seats, link) { |