mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 12:56:06 +00:00
* fix: desktop session: Shift no longer stays held after typing capitals on a physical keyboard Android repeats a held key as more key presses. Those were forwarded to the session as more wl_keyboard presses, and KWin's xkb counts every press of a modifier, so Shift held for a few capitals took several presses and one release and stayed held: digits typed !@#, letters stayed capital. The same applied to Ctrl and Alt. - the compositor no longer sends a press for a key that is already down; releases always go through (clients repeat keys themselves from the repeat_info it already sends) - the app stops forwarding Android's repeat events for keyboard keys Reported by whatsupbros with a Keychron Q7 over USB - thank you. * Remove stale comments from statx patch --------- Co-authored-by: The412Banner <the412banner@users.noreply.github.com> Co-authored-by: xXJsonDeruloXx <danielhimebauch@gmail.com>
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: DroidDeck <droiddeck@users.noreply.github.com>
|
|
Date: Tue, 13 Oct 2026 00:00:00 +0000
|
|
Subject: [PATCH] statx: supply mount IDs on kernels before 5.8
|
|
|
|
On kernels before 5.8, statx can succeed without STATX_MNT_ID. Recover it
|
|
from the already-open descriptor after verifying its identity. Keep the
|
|
compatibility exit stop only on kernels that need the missing field.
|
|
---
|
|
diff --git a/src/syscall/seccomp.c b/src/syscall/seccomp.c
|
|
index ee7b8acd68660f38fd52f56e951ffb94e9061d68..ff3a79b60e9092a296bb444c919bb3861338727f 100644
|
|
--- a/src/syscall/seccomp.c
|
|
+++ b/src/syscall/seccomp.c
|
|
@@ -764 +764 @@ static void drop_unneeded_exit_stops(void)
|
|
- if (major > 4 || (major == 4 && minor >= 11))
|
|
+ if (major > 5 || (major == 5 && minor >= 8))
|
|
diff --git a/src/tracee/statx.c b/src/tracee/statx.c
|
|
index ca972f892e84461cb694dd13a37bfbc67527b320..824771ccf5934e1f870fc36a29fb22fdcad0a856 100644
|
|
--- a/src/tracee/statx.c
|
|
+++ b/src/tracee/statx.c
|
|
@@ -4,0 +5 @@
|
|
+#include "tracee/statx_mnt_id.h"
|
|
@@ -125,0 +127,5 @@ int handle_statx_syscall(Tracee *tracee, bool from_sigsys) {
|
|
+ if (droiddeck_proot_statx_fill_mnt_id(tracee->pid, (int) dirfd,
|
|
+ (int) flags, guest_path, (unsigned int) mask,
|
|
+ &state.statx_buf))
|
|
+ state.updated_stats = true;
|
|
+
|