diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6b6d727a..6bbaf938 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -225,7 +225,12 @@ static void output_frame_notify(struct wl_listener *listener, void *data) { | |||
225 | wlr_output_make_current(wlr_output, &buffer_age); | 225 | wlr_output_make_current(wlr_output, &buffer_age); |
226 | wlr_renderer_begin(server->renderer, wlr_output); | 226 | wlr_renderer_begin(server->renderer, wlr_output); |
227 | 227 | ||
228 | swayc_t *workspace = soutput->swayc->focused; | 228 | struct sway_seat *seat = input_manager_current_seat(input_manager); |
229 | swayc_t *focus = sway_seat_get_focus_inactive(seat, soutput->swayc); | ||
230 | swayc_t *workspace = (focus->type == C_WORKSPACE ? | ||
231 | focus : | ||
232 | swayc_parent_by_type(focus, C_WORKSPACE)); | ||
233 | |||
229 | swayc_descendants_of_type(workspace, C_VIEW, output_frame_view, soutput); | 234 | swayc_descendants_of_type(workspace, C_VIEW, output_frame_view, soutput); |
230 | 235 | ||
231 | // render unmanaged views on top | 236 | // render unmanaged views on top |