[TCLCORE] Autorepeat and X
by Alexandre Ferrieux other posts by this author
May 29 2007 11:21AM messages near this date
[TCLCORE] TIP #234 (zlib compression): Why isn't there channel stacking?
|
[TCLCORE] Why ttk::dialog is gone?
Hi,
As recently discussed on c.l.t, the event stream generated by keyboard
autorepeat is not the same for X and for Windows:
Using "P" and "R" for "KeyPress" and "KeyRelease":
Windows -> PPPPPPPPPPPPPPPPPPR
X -> P(RP)(RP)(RP)......(RP)R
(where (RP) are couples with same timestamp and serial)
As a consequence, Windows allows for straightforward detection of
auto-repeat events, while the X scheme requires a rather complicated logic
(detecting the couples, and posting a timer to detect the last R).
As a (half-witted) workaround, X offers 'xset -r', which is a global,
display-wide disabling...
Question: do you have any pointers to the (if any) discussion in the X
community that lead to that questionable decision ?
TIA,
-Alex
|