mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Add support for ext_idle_notify_v1..
..and combine both idle variants into a standalone manager
This commit is contained in:
parent
e06a8cfc7a
commit
40aba9e542
9 changed files with 134 additions and 51 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue