diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-10 19:53:50 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-02-10 19:53:50 -0500 |
commit | 93084c9cf80901b160e0eb50b72a8e607289a678 (patch) | |
tree | 0b6c6753bb52f8382110e8ab5d9755f4807f4ee7 /sway/desktop/output.c | |
parent | ce3a1b3922850124c562e56ea9a783b090e969b9 (diff) |
remove old focus member
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) { wlr_output_make_current(wlr_output, &buffer_age); wlr_renderer_begin(server->renderer, wlr_output); - swayc_t *workspace = soutput->swayc->focused; + struct sway_seat *seat = input_manager_current_seat(input_manager); + swayc_t *focus = sway_seat_get_focus_inactive(seat, soutput->swayc); + swayc_t *workspace = (focus->type == C_WORKSPACE ? + focus : + swayc_parent_by_type(focus, C_WORKSPACE)); + swayc_descendants_of_type(workspace, C_VIEW, output_frame_view, soutput); // render unmanaged views on top |