Re: [PATCH v2 xserver] xkb: fix releasing overlay while keydown

2016-11-05 Thread walter harms
Am 05.11.2016 20:03, schrieb Mihail Konev: > The overlay_keys array could be avoided. > > Testcase: > > // In the exact order: > // - press Insert > // - press Tilde > // - release Insert > // - wait > // - release Tilde > // > // Keyboard input would be locked. > > xkb_keymap { >

Re: Debugging keyboard overlay+xbindkeys

2016-11-05 Thread Mihail Konev
On Sun, Nov 06, 2016 at 12:37:44AM +0500, Mihail Konev wrote: > The only reason not to use arrow-keysyms-on-levels is that > MonoDevelop, Java apps, VTE do not recognize them as "arrows", > i.e. you cannot shift-select, or shift-scroll. > > A possible solution to avoid abovementioned indirection

Re: Debugging keyboard overlay+xbindkeys

2016-11-05 Thread Mihail Konev
On Sat, Nov 05, 2016 at 03:43:49AM +0500, Mihail Konev wrote: > On Sat, Nov 05, 2016 at 03:26:54AM +0500, Mihail Konev wrote: > > E.g. you cannot have caps+y be 'yen' and 'YEN' easily. > (Assuming that Unicode 'yen' does not capitalize to 'YEN'). > E.g. caps+y -> ':' ; caps+Y -> '@' . Correct

Re: [PATCH v2 xserver] xkb: fix releasing overlay while keydown

2016-11-05 Thread Mihail Konev
On Sun, Nov 06, 2016 at 12:03:47AM +0500, Mihail Konev wrote: > +if (overlay_enabled) > +overlay_keys[which_overlay][(unsigned char)key] = > behavior.data; > +else > +behavior_data = overlay_keys[which_overlay][(unsigned > char)key]; > +

[PATCH v2 xserver] xkb: fix releasing overlay while keydown

2016-11-05 Thread Mihail Konev
The overlay_keys array could be avoided. Testcase: // In the exact order: // - press Insert // - press Tilde // - release Insert // - wait // - release Tilde // // Keyboard input would be locked. xkb_keymap { xkb_keycodes { include "evdev" }; xkb_types{ include "complete" };

[PATCH xserver] xkb: fix releasing overlay while keydown

2016-11-05 Thread Mihail Konev
The overlay_keys array could be avoided. Testcase: // In the exact order: // - press Insert // - press Tilde // - release Insert // - wait // - release Tilde // // Keyboard input would be locked. xkb_keymap { xkb_keycodes { include "evdev" }; xkb_types{ include "complete" };

Re: Debugging keyboard overlay+xbindkeys

2016-11-05 Thread wettstae
> Question is, was it there for 22 years cause it's unfixable or because > nobody uses overlay? :) I guess Mihail is right, overlays are certainly little used. I do use overlays myself, but only as as lock, where the bug is not likely to occur. You might want to look at Redirect actions,