20
20
#include <wlr/backend/session.h>
21
21
#include <wlr/types/wlr_cursor.h>
22
22
#include <wlr/types/wlr_data_device.h>
23
- #include <wlr/types/wlr_idle .h>
23
+ #include <wlr/types/wlr_idle_notify_v1 .h>
24
24
#include <wlr/types/wlr_keyboard_group.h>
25
25
#include <wlr/types/wlr_primary_selection.h>
26
26
#include <wlr/types/wlr_relative_pointer_v1.h>
@@ -250,7 +250,7 @@ handle_modifier_event(struct wlr_keyboard *keyboard, struct cg_seat *seat)
250
250
wlr_seat_set_keyboard (seat -> seat , keyboard );
251
251
wlr_seat_keyboard_notify_modifiers (seat -> seat , & keyboard -> modifiers );
252
252
253
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
253
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
254
254
}
255
255
256
256
static bool
@@ -272,7 +272,7 @@ handle_keybinding(struct cg_server *server, xkb_keysym_t sym)
272
272
} else {
273
273
return false;
274
274
}
275
- wlr_idle_notify_activity (server -> idle , server -> seat -> seat );
275
+ wlr_idle_notifier_v1_notify_activity (server -> idle , server -> seat -> seat );
276
276
return true;
277
277
}
278
278
@@ -304,7 +304,7 @@ handle_key_event(struct wlr_keyboard *keyboard, struct cg_seat *seat, void *data
304
304
wlr_seat_keyboard_notify_key (seat -> seat , event -> time_msec , event -> keycode , event -> state );
305
305
}
306
306
307
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
307
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
308
308
}
309
309
310
310
static void
@@ -512,7 +512,7 @@ handle_touch_down(struct wl_listener *listener, void *data)
512
512
press_cursor_button (seat , & event -> touch -> base , event -> time_msec , BTN_LEFT , WLR_BUTTON_PRESSED , lx , ly );
513
513
}
514
514
515
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
515
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
516
516
}
517
517
518
518
static void
@@ -531,7 +531,7 @@ handle_touch_up(struct wl_listener *listener, void *data)
531
531
}
532
532
533
533
wlr_seat_touch_notify_up (seat -> seat , event -> time_msec , event -> touch_id );
534
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
534
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
535
535
}
536
536
537
537
static void
@@ -563,7 +563,7 @@ handle_touch_motion(struct wl_listener *listener, void *data)
563
563
seat -> touch_ly = ly ;
564
564
}
565
565
566
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
566
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
567
567
}
568
568
569
569
static void
@@ -572,7 +572,7 @@ handle_touch_frame(struct wl_listener *listener, void *data)
572
572
struct cg_seat * seat = wl_container_of (listener , seat , touch_frame );
573
573
574
574
wlr_seat_touch_notify_frame (seat -> seat );
575
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
575
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
576
576
}
577
577
578
578
static void
@@ -581,7 +581,7 @@ handle_cursor_frame(struct wl_listener *listener, void *data)
581
581
struct cg_seat * seat = wl_container_of (listener , seat , cursor_frame );
582
582
583
583
wlr_seat_pointer_notify_frame (seat -> seat );
584
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
584
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
585
585
}
586
586
587
587
static void
@@ -592,7 +592,7 @@ handle_cursor_axis(struct wl_listener *listener, void *data)
592
592
593
593
wlr_seat_pointer_notify_axis (seat -> seat , event -> time_msec , event -> orientation , event -> delta ,
594
594
event -> delta_discrete , event -> source );
595
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
595
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
596
596
}
597
597
598
598
static void
@@ -604,7 +604,7 @@ handle_cursor_button(struct wl_listener *listener, void *data)
604
604
wlr_seat_pointer_notify_button (seat -> seat , event -> time_msec , event -> button , event -> state );
605
605
press_cursor_button (seat , & event -> pointer -> base , event -> time_msec , event -> button , event -> state , seat -> cursor -> x ,
606
606
seat -> cursor -> y );
607
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
607
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
608
608
}
609
609
610
610
static void
@@ -634,7 +634,7 @@ process_cursor_motion(struct cg_seat *seat, uint32_t time_msec, double dx, doubl
634
634
drag_icon_update_position (drag_icon );
635
635
}
636
636
637
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
637
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
638
638
}
639
639
640
640
static void
@@ -651,7 +651,7 @@ handle_cursor_motion_absolute(struct wl_listener *listener, void *data)
651
651
652
652
wlr_cursor_warp_absolute (seat -> cursor , & event -> pointer -> base , event -> x , event -> y );
653
653
process_cursor_motion (seat , event -> time_msec , dx , dy , dx , dy );
654
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
654
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
655
655
}
656
656
657
657
static void
@@ -663,7 +663,7 @@ handle_cursor_motion_relative(struct wl_listener *listener, void *data)
663
663
wlr_cursor_move (seat -> cursor , & event -> pointer -> base , event -> delta_x , event -> delta_y );
664
664
process_cursor_motion (seat , event -> time_msec , event -> delta_x , event -> delta_y , event -> unaccel_dx ,
665
665
event -> unaccel_dy );
666
- wlr_idle_notify_activity (seat -> server -> idle , seat -> seat );
666
+ wlr_idle_notifier_v1_notify_activity (seat -> server -> idle , seat -> seat );
667
667
}
668
668
669
669
static void
0 commit comments