aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-10 19:53:50 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-10 19:53:50 -0500
commit93084c9cf80901b160e0eb50b72a8e607289a678 (patch)
tree0b6c6753bb52f8382110e8ab5d9755f4807f4ee7 /sway/desktop/output.c
parentproperly pick next focus (diff)
downloadsway-93084c9cf80901b160e0eb50b72a8e607289a678.tar.gz
sway-93084c9cf80901b160e0eb50b72a8e607289a678.tar.zst
sway-93084c9cf80901b160e0eb50b72a8e607289a678.zip
remove old focus member
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c7
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