-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental: Add XKB extension for locks #446
Conversation
This is an extension to XKB, to allow to use the combination Control + Shift *alone* to switch layouts, while keeping the use of Control + Shift + some other key (typically for keyboard shortcuts). This is really useful for people coming from other platform, such as Windows.
This is an extensions to XKB. It intends to allow to deactivate CapsLock on press rather than on release, as in other platforms such as Windows.
The code LGTM, but tests would answer that question :)
Adding And we have a pretty clear split between compositor-side I don't think we need to worry about X11, that ship has sailed and is listing. So what we need is the Wayland negotiation which I at minimum needs a
Not sure whether we need a A potentially better approach is to add a subversion so we use
This way we can introduce future XKB versions like this without having to bump the wayland protocol for each of them. Note that doing so decouples We could do a subversion here too like
Can you rephrase/expand on this, I'm not sure what you mean here.
Yes, we can only send keymaps to the client that are compatible v1. |
@whot I meant to add also |
Just a quick question, what actually happens on old xkbcommon and xkbcomp if you set these options? Do they count towards the fatal error count, or just issue a log and ignored? |
Regarding
Do you think you can document the new flags in keymap-format-text-v1.md? (Mostly so I can remind myself about these things 😀 but also because it seems better to discuss a "spec" change before a code change). (Also, link to a previous Xorg proposal https://lists.x.org/archives/xorg-devel/2012-November/034427.html by Andreas Wettstein) |
xkbcommon 1.6 (xkbcli compile-keymap)
xkbcomp 1.4.7:
So error in both cases. |
@bluetech I tried to adapt the fix of Andreas (thanks for the link) to xkbcommon. I agree we should ideally discuss spec before the code, but since I have limited time and we are not going to merge this fix before handling the compatibility question, I though I would leave the nice doc for now.
|
Reworked at #485 |
Following the discussion in #432, I have done a little experiment that implements two new options:
lockOnRelease
forLockGroup
action: intended to fix Need to kick hotkeys on release, not press.unlockOnPress
forLockMods
action: intended to fix Option to apparently unlock the Lock modifier on press of Caps Lock.This is backward-incompatible as it introduces a new syntax for the keymap.
I see at least 4 points to discuss here:
I think there are 2 aspects to consider:
Private
action, useful for exchange/ouput. Older xkbcommon would just ignore this action and thus we avoid a syntax error.Private
as presented in the previous section, in order to maximize compatibility.I think that if we answer 1) and 2), then we could publish it as a tech preview, with a big warning. That could get us feedback before engaging with protocol updates.
@whot @bluetech @fooishbar