Update cursor when workspace focus changes

This commit is contained in:
emersion 2018-04-21 12:46:48 +01:00
parent 8e32c4a1fb
commit 33ed279494
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 8 additions and 3 deletions

View file

@ -59,9 +59,8 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,
// find the output the cursor is on
struct wlr_output_layout *output_layout =
root_container.sway_root->output_layout;
struct wlr_output *wlr_output =
wlr_output_layout_output_at(output_layout,
cursor->cursor->x, cursor->cursor->y);
struct wlr_output *wlr_output = wlr_output_layout_output_at(output_layout,
cursor->cursor->x, cursor->cursor->y);
if (wlr_output == NULL) {
return NULL;
}