From kde-core-devel Thu Oct 31 22:55:46 2002 From: Malte Starostik Date: Thu, 31 Oct 2002 22:55:46 +0000 To: kde-core-devel Subject: Re: New KAccel bug? [PATCH#2] X-MARC-Message: https://marc.info/?l=kde-core-devel&m=103610508521831 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-02=_yTbw9yNKn8x9pxZ" --Boundary-02=_yTbw9yNKn8x9pxZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Description: signed data Content-Disposition: inline On Thursday 31 October 2002 22:37, Ellis Whitehead wrote: > On Wednesday 30 October 2002 23:22, Hasso Tepper wrote: > > Ellis Whitehead wrote: > > > Here's a patch for the problem. I'm afraid I don't have access to > > > a compilable cvs right now, so I can't test it. :( However, a > > > logic walk-through seems to indicate that it'll work. Please let > > > me know. > > > > Applying patch, recompiling kdecore, make install, restart kde ... no > > help. Problem is still there. > > Ok, I found the problem. > m_code = XKeysymToKeycode( qt_xdisplay(), m_sym ); > When a key symbol of zero is passed to XKeysymToKeycode(), it returns the > keycode for the 'E' key on some machines (setup-dependent, I think). So > the attached patch checks whether m_sym is zero before calling > XKeysym...(). > > Please let me know if it works and I'll commit. :) Yes, this fixes it. Thanks! -Malte --Boundary-02=_yTbw9yNKn8x9pxZ Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA9wbTyVDF3RdLzx4cRAkwCAJ99EBg4w5LuEIB+1SPHnd2Ba30fuACgorVI D1R2erZmjVijZ92aeN4LRkc= =Iij3 -----END PGP SIGNATURE----- --Boundary-02=_yTbw9yNKn8x9pxZ--