summaryrefslogtreecommitdiffstats
path: root/sway/input/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/switch.c')
-rw-r--r--sway/input/switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c
index 72d1245f..b7c28df1 100644
--- a/sway/input/switch.c
+++ b/sway/input/switch.c
@@ -70,8 +70,8 @@ static void handle_switch_toggle(struct wl_listener *listener, void *data) {
70 struct sway_switch *sway_switch = 70 struct sway_switch *sway_switch =
71 wl_container_of(listener, sway_switch, switch_toggle); 71 wl_container_of(listener, sway_switch, switch_toggle);
72 struct wlr_event_switch_toggle *event = data; 72 struct wlr_event_switch_toggle *event = data;
73 struct wlr_seat* wlr_seat = sway_switch->seat_device->sway_seat->wlr_seat; 73 struct sway_seat *seat = sway_switch->seat_device->sway_seat;
74 wlr_idle_notify_activity(server.idle, wlr_seat); 74 seat_idle_notify_activity(seat, IDLE_SOURCE_SWITCH);
75 75
76 struct wlr_input_device *wlr_device = 76 struct wlr_input_device *wlr_device =
77 sway_switch->seat_device->input_device->wlr_device; 77 sway_switch->seat_device->input_device->wlr_device;