From fad271f7fc48917cc2dde178f39358e1583ab0d5 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Wed, 10 Nov 2021 11:43:59 +0100 Subject: [PATCH] Update --- ...001-seat-Don-t-notify-on-key-release.patch | 19 ++++++++++--------- x11-wm/phoc/phoc-0.9.0.ebuild | 6 +++++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/x11-wm/phoc/files/0001-seat-Don-t-notify-on-key-release.patch b/x11-wm/phoc/files/0001-seat-Don-t-notify-on-key-release.patch index a292800..2a896de 100644 --- a/x11-wm/phoc/files/0001-seat-Don-t-notify-on-key-release.patch +++ b/x11-wm/phoc/files/0001-seat-Don-t-notify-on-key-release.patch @@ -11,15 +11,16 @@ diff --git a/src/seat.c b/src/seat.c index b04fed1..679a3f5 100644 --- a/src/seat.c +++ b/src/seat.c -@@ -30,8 +30,9 @@ static void handle_keyboard_key(struct wl_listener *listener, void *data) { - PhocKeyboard *keyboard = - wl_container_of(listener, keyboard, keyboard_key); - PhocDesktop *desktop = server->desktop; -- wlr_idle_notify_activity(desktop->idle, keyboard->seat->seat); - struct wlr_event_keyboard_key *event = data; -+ if (event->state == WLR_KEY_PRESSED) -+ wlr_idle_notify_activity(desktop->idle, keyboard->seat->seat); - phoc_keyboard_handle_key(keyboard, event); +@@ -42,9 +42,9 @@ handle_keyboard_key (struct wl_listener + wl_container_of (listener, keyboard, keyboard_key); + PhocDesktop *desktop = server->desktop; + +- wlr_idle_notify_activity (desktop->idle, keyboard->seat->seat); + struct wlr_event_keyboard_key *event = data; +- ++ if (event->state == WLR_KEY_PRESSED) ++ wlr_idle_notify_activity(desktop->idle, keyboard->seat->seat); + phoc_keyboard_handle_key (keyboard, event); } -- diff --git a/x11-wm/phoc/phoc-0.9.0.ebuild b/x11-wm/phoc/phoc-0.9.0.ebuild index 120a3cb..6d039c9 100644 --- a/x11-wm/phoc/phoc-0.9.0.ebuild +++ b/x11-wm/phoc/phoc-0.9.0.ebuild @@ -44,6 +44,7 @@ RDEPEND=" x11-libs/xcb-util-wm x11-wm/mutter sys-auth/seatd + !gui-libs/wlroots " BDEPEND=" @@ -53,6 +54,10 @@ BDEPEND=" x11-base/xorg-server " +PATCHES=( + "${FILESDIR}/0001-seat-Don-t-notify-on-key-release.patch" +) + S="${WORKDIR}/${MY_P}" src_prepare() { @@ -62,7 +67,6 @@ src_prepare() { cd "${S}"/subprojects/wlroots eapply "${FILESDIR}"/xcursor-fix-false-positive-stringop-truncation.diff - eapply "${FILESDIR}"/Revert-layer-shell-error-on-0-dimension-without-anchors.diff }