diff options
Diffstat (limited to 'x11/xdg-desktop-portal-luminous')
-rw-r--r-- | x11/xdg-desktop-portal-luminous/Makefile | 3 | ||||
-rw-r--r-- | x11/xdg-desktop-portal-luminous/files/patch-32bit | 26 |
2 files changed, 28 insertions, 1 deletions
diff --git a/x11/xdg-desktop-portal-luminous/Makefile b/x11/xdg-desktop-portal-luminous/Makefile index a0ae8a67ba1a..c2f324bc59ee 100644 --- a/x11/xdg-desktop-portal-luminous/Makefile +++ b/x11/xdg-desktop-portal-luminous/Makefile @@ -1,9 +1,10 @@ PORTNAME= xdg-desktop-portal-luminous DISTVERSIONPREFIX= v DISTVERSION= 0.1.11 +PORTREVISION= 1 CATEGORIES= x11 wayland -MAINTAINER= jbeich@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= xdg-desktop-portal backend for wlroots WWW= https://github.com/waycrate/xdg-desktop-portal-luminous 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() |