Add support for ext_idle_notify_v1..

..and combine both idle variants into a standalone manager
This commit is contained in:
Consolatis 2023-07-08 18:27:40 +02:00 committed by Johan Malm
parent e06a8cfc7a
commit 40aba9e542
9 changed files with 134 additions and 51 deletions

View file

@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <wlr/types/wlr_touch.h>
#include "idle.h"
#include "labwc.h"
#include "common/scene-helpers.h"
@ -29,7 +30,7 @@ touch_motion(struct wl_listener *listener, void *data)
{
struct seat *seat = wl_container_of(listener, seat, touch_motion);
struct wlr_touch_motion_event *event = data;
wlr_idle_notify_activity(seat->wlr_idle, seat->seat);
idle_manager_notify_activity(seat->seat);
double sx, sy;
if (touch_get_coords(seat, event->touch, event->x, event->y, &sx, &sy)) {