From 7cf4e1d5c68d764037f78cbffb167a4cc763c6c1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 19 Jun 2023 21:22:23 +0200 Subject: [PATCH] Drop support for KDE's idle protocol We support the standard idle-notify protocol since Sway 1.8. --- include/sway/desktop/idle_inhibit_v1.h | 1 - include/sway/server.h | 1 - sway/desktop/idle_inhibit_v1.c | 2 -- sway/input/cursor.c | 1 - sway/input/keyboard.c | 1 - sway/input/seat.c | 2 -- sway/input/switch.c | 1 - sway/server.c | 2 -- 8 files changed, 11 deletions(-) diff --git a/include/sway/desktop/idle_inhibit_v1.h b/include/sway/desktop/idle_inhibit_v1.h index 6dda1af9..84cc666d 100644 --- a/include/sway/desktop/idle_inhibit_v1.h +++ b/include/sway/desktop/idle_inhibit_v1.h @@ -1,7 +1,6 @@ #ifndef _SWAY_DESKTOP_IDLE_INHIBIT_V1_H #define _SWAY_DESKTOP_IDLE_INHIBIT_V1_H #include -#include enum sway_idle_inhibit_mode { INHIBIT_IDLE_APPLICATION, // Application set inhibitor (when visible) diff --git a/include/sway/server.h b/include/sway/server.h index 1eb308a4..108561e6 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -52,7 +52,6 @@ struct sway_server { struct wl_listener new_output; struct wl_listener output_layout_change; - struct wlr_idle *idle; struct wlr_idle_notifier_v1 *idle_notifier_v1; struct sway_idle_inhibit_manager_v1 idle_inhibit_manager_v1; diff --git a/sway/desktop/idle_inhibit_v1.c b/sway/desktop/idle_inhibit_v1.c index 1fa058e3..f3af7aa1 100644 --- a/sway/desktop/idle_inhibit_v1.c +++ b/sway/desktop/idle_inhibit_v1.c @@ -1,5 +1,4 @@ #include -#include #include #include "log.h" #include "sway/desktop/idle_inhibit_v1.h" @@ -140,7 +139,6 @@ void sway_idle_inhibit_v1_check_active(void) { break; } } - wlr_idle_set_enabled(server.idle, NULL, !inhibited); wlr_idle_notifier_v1_set_inhibited(server.idle_notifier_v1, inhibited); } diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 44a5d6f7..36aab93e 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/sway/input/keyboard.c b/sway/input/keyboard.c index c3bf4fbb..8927287f 100644 --- a/sway/input/keyboard.c +++ b/sway/input/keyboard.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include diff --git a/sway/input/seat.c b/sway/input/seat.c index a84e4d52..f56de137 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include @@ -103,7 +102,6 @@ void seat_idle_notify_activity(struct sway_seat *seat, if ((source & seat->idle_inhibit_sources) == 0) { return; } - wlr_idle_notify_activity(server.idle, seat->wlr_seat); wlr_idle_notifier_v1_notify_activity(server.idle_notifier_v1, seat->wlr_seat); } diff --git a/sway/input/switch.c b/sway/input/switch.c index fc7dfaff..7a539801 100644 --- a/sway/input/switch.c +++ b/sway/input/switch.c @@ -1,6 +1,5 @@ #include "sway/config.h" #include "sway/input/switch.h" -#include #include "log.h" struct sway_switch *sway_switch_create(struct sway_seat *seat, diff --git a/sway/server.c b/sway/server.c index ba5c2a0c..fd0ab585 100644 --- a/sway/server.c +++ b/sway/server.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -145,7 +144,6 @@ bool server_init(struct sway_server *server) { wlr_xdg_output_manager_v1_create(server->wl_display, root->output_layout); - server->idle = wlr_idle_create(server->wl_display); server->idle_notifier_v1 = wlr_idle_notifier_v1_create(server->wl_display); sway_idle_inhibit_manager_v1_init();