summaryrefslogtreecommitdiff
path: root/x11/xdg-desktop-portal-luminous/files/patch-32bit
diff options
context:
space:
mode:
Diffstat (limited to 'x11/xdg-desktop-portal-luminous/files/patch-32bit')
-rw-r--r--x11/xdg-desktop-portal-luminous/files/patch-32bit26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/xdg-desktop-portal-luminous/files/patch-32bit b/x11/xdg-desktop-portal-luminous/files/patch-32bit
new file mode 100644
index 000000000000..ae834fb13c3b
--- /dev/null
+++ b/x11/xdg-desktop-portal-luminous/files/patch-32bit
@@ -0,0 +1,26 @@
+https://github.com/waycrate/xdg-desktop-portal-luminous/commit/11866c1db91d
+
+--- src/remotedesktop/state.rs.orig 2025-06-26 13:00:06 UTC
++++ src/remotedesktop/state.rs
+@@ -132,18 +132,19 @@ impl AppData {
+ }
+
+ pub fn notify_keyboard_keycode(&mut self, keycode: i32, state: u32) {
++ let pressed_key: u32 = KeyState::Pressed.into();
+ match self.get_modifier_from_keycode(keycode) {
+ // Caps lock is managed differently as it's the only
+ // modifier key that is still active after being released
+ Some(Modifiers::CapsLock) => {
+- if state == KeyState::Pressed.into() {
++ if state == pressed_key {
+ self.mods ^= BitFlags::from_flag(Modifiers::CapsLock).bits();
+ self.virtual_keyboard.modifiers(self.mods, 0, 0, 0)
+ }
+ }
+ // Other modifier keys
+ Some(modifier) => {
+- if state == KeyState::Pressed.into() {
++ if state == pressed_key {
+ self.mods |= BitFlags::from_flag(modifier).bits()
+ } else {
+ self.mods &= !BitFlags::from_flag(modifier).bits()