aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-16 07:33:23 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-16 07:33:23 -0500
commit9fa70ce426a78921fa61f25f8b30a73a2a7d9ad7 (patch)
tree823cce0da3f7e0dc21c26bef7e639e8370e29b3d /sway/input/cursor.c
parentkeyboard cleanup (diff)
parentMerge pull request #1503 from emersion/output-config (diff)
downloadsway-9fa70ce426a78921fa61f25f8b30a73a2a7d9ad7.tar.gz
sway-9fa70ce426a78921fa61f25f8b30a73a2a7d9ad7.tar.zst
sway-9fa70ce426a78921fa61f25f8b30a73a2a7d9ad7.zip
Merge branch 'wlroots' into feature/input
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 3aa2d1bc..24d4642d 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -140,7 +140,8 @@ struct sway_cursor *sway_cursor_create(struct sway_seat *seat) {
140 } 140 }
141 141
142 cursor->seat = seat; 142 cursor->seat = seat;
143 wlr_cursor_attach_output_layout(wlr_cursor, root_container.output_layout); 143 wlr_cursor_attach_output_layout(wlr_cursor,
144 root_container.sway_root->output_layout);
144 145
145 // input events 146 // input events
146 wl_signal_add(&wlr_cursor->events.motion, &cursor->motion); 147 wl_signal_add(&wlr_cursor->events.motion, &cursor->motion);