drm: Respect XDG_SEAT for libinput seat selection - #779
Conversation
Add our custom patched version of cog with support of seat selection (also submitted upstream as PR 779), and assign Flipper One keys to seat1 to avoid leaking keypresses into a graphical DE session. Link: Igalia/cog#779 Signed-off-by: Alexey Charkov <alchark@flipper.net>
aperezdc
left a comment
There was a problem hiding this comment.
@alchark I like the idea of allowing configuring the seat, but rather than using only an environment variable, it would be better to allow setting it in the configuration file and/or via the -O/--platform-params= command line option. Would you be open to try and implement that in the init_config() function?
P.S: Please don't use Copilot for code reviews.
|
@aperezdc sure, let me try and add config/cmdline parsing too. I believe the precedence should be:
As for Copilot, I don't think I did anything to trigger it, but it might be some "helpful" default buried somewhere in Github settings. Any pointers welcome :-D |
df059ba to
36a63cf
Compare
This makes sense, indeed. Also I was checking around and it looks like the name of the
It looks like it was some repo setting that triggered it automatically, hopefully it is disabled now after some fiddling with the repo settings (not they make it easy to disable 🙃). |
aperezdc
left a comment
There was a problem hiding this comment.
@alchark Thanks for iterating on this. I left one small comment, and otherwise the patch looks good to me. Could you take a look?
(Don't worry about the failed ARM build in the CI, the job is having some issue picking the toolchain, so that's on us.)
Add our custom patched version of cog with support of seat selection (also submitted upstream as PR 779), and assign Flipper One keys to seat1 to avoid leaking keypresses into a graphical DE session. Link: Igalia/cog#779 Signed-off-by: Alexey Charkov <alchark@flipper.net>
36a63cf to
7ec7afa
Compare
Head branch was pushed to by a user without write access
7bb9845 to
f4442df
Compare
|
That's weird. Let me rebase manually and re-publish, sorry for the noise. |
Instead of hardcoding "seat0" for enumerating available inputs under the DRM platform, use the value optionally provided by the standard environment variable XDG_SEAT, or by the config file setting "seat", or by a command line setting "seat", and fall back to the previous default if unavailable. This allows running cog on a dedicated seat with its own display and input devices, while leaving the default seat0 available for other uses.
f4442df to
4c4f70a
Compare
|
@TingPing would you mind giving this another look? No conflicts now. |
Instead of hardcoding "seat0" for enumerating available inputs under the DRM platform, use the value optionally provided by the standard environment variable XDG_SEAT, and fall back to the previous default if unavailable.
This allows running cog on a dedicated seat with its own display and input devices, while leaving the default seat0 available for other uses.