Bug: Meta modifier only works on alphanumeric keys in combination with Control
Fairly weird issue, but:
Using SDL2 frontend, Meta key gets detected in two cases only
- The "main" key pressed isn't alphanumeric (for example,
M-F1andM-Deletework) - Control is also held at the same time (for example,
M-C-xworks)
This issue doesn't seem to affect the ncurses frontend
Lem version: Git, commit: a392523
OS: Linux, 6.12.24-1-lts
Desktop: Hyprland (Wayland), version 0.48.1
Will be glad to provide any other information, because my CL skills weren't enough to debug this myself beyond figuring out that the modifier is actually accounted for at the lem-sdl2/keyboard level
This issue exists when using SDL2-compat instead of standard SDL2.
Distros are now deprecating standard SDL2 over SDL2-compat. If you're on a distro that supports rolling it back like Arch, you can just use SDL2 in the meantime. Others (like me on Fedora) are out of luck at the moment.
Not sure if this is fixable on lem's end, or if it's a regression on behalf of SDL2-compat that they have to fix.
Hi, thanks for explaining this bug, Recently installed on manjaro linux lem version v2.3.0, and doesnt work for me the fix (later I see that it was in draft).
pamac search sdl2
sdl2-compat 2.32.56-2 [Instal·lats] extra
An SDL2 compatibility layer that uses SDL3 behind the scenes
sdl2 2.32.8-1 AUR
A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard (Version 2)
so I should go an install sdl2 instead of sdl2-compat?, but it breaks a lot of depdencies:
LC_ALL=c sudo pacman -R sdl2-compat
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing sdl2-compat breaks dependency 'sdl2' required by ffmpeg
:: removing sdl2-compat breaks dependency 'sdl2' required by ffmpeg4.4
:: removing sdl2-compat breaks dependency 'sdl2' required by plasma-desktop
:: removing sdl2-compat breaks dependency 'sdl2' required by sdl12-compat
:: removing sdl2-compat breaks dependency 'sdl2' required by sdl2_image
:: removing sdl2-compat breaks dependency 'sdl2' required by sdl2_ttf
:: removing sdl2-compat breaks dependency 'sdl2' required by wxwidgets-gtk3
It seems that I have sthe smae problems as https://github.com/lem-project/lem/pull/1811#issuecomment-2865857765.
Should be possible to install togetter sdl2 and sdl2-compat and compile lem with sdl2?
Lem with ncurses works perfecly and is awesome fast
Since the attached PR was rejected, shouldn't this bug report be reopened?