ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved