NetBSD Problem Report #40582

From www@NetBSD.org  Sun Feb  8 19:07:53 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id AFE4263B99D
	for <gnats-bugs@gnats.netbsd.org>; Sun,  8 Feb 2009 19:07:53 +0000 (UTC)
Message-Id: <20090208190753.51C1E63B882@narn.NetBSD.org>
Date: Sun,  8 Feb 2009 19:07:53 +0000 (UTC)
From: michael+netbsd@stapelberg.de
Reply-To: michael+netbsd@stapelberg.de
To: gnats-bugs@NetBSD.org
Subject: Mode_switch key press takes 2 seconds to get processed
X-Send-Pr-Version: www-1.0

>Number:         40582
>Category:       xsrc
>Synopsis:       Mode_switch key press takes 2 seconds to get processed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 08 19:10:00 +0000 2009
>Last-Modified:  Mon Feb 09 19:10:02 +0000 2009
>Originator:     Michael Stapelberg
>Release:        5.99.7 (current)
>Organization:
>Environment:
NetBSD ms 5.99.7 NetBSD 5.99.7 (GENERIC) #6: Sun Feb  8 16:18:37 CET 2009  root@ms:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
I've remapped Caps-lock to be Mode_switch using this .Xmodmap:

keycode 66 = Mode_switch
clear Lock

Furthermore, I'm generating umlauts using this key, .Xmodmap looks like this:
keycode 30 = u U udiaeresis Udiaeresis
keycode 32 = o O odiaeresis Odiaeresis
keycode 38 = a A adiaeresis Adiaeresis
etc…

The problem is: Whenever I press Mode_switch, I have to wait 2 seconds until the key press gets processed (I don't know exactly where it hangs, but xev shows the event about two seconds later and the character gets inserted then into urxvt/firefox).

Probably this has something to do with the xterm/inputmethod-thing of which one can read on the mailing list.

I'm using the following settings in .xsession before starting my window manager (wmii-3.6 from pkgsrc):
export LC_CTYPE=de_DE.UTF-8
export LC_COLLATE=de_DE.UTF-8
export LC_TIME=de_DE.UTF-8
export LC_NUMERIC=de_DE.UTF-8
export LC_MONETARY=de_DE.UTF-8
export LC_MESSAGES=C
export LC_PAPER=de_DE.UTF-8
export LC_NAME=de_DE.UTF-8
export LC_ADDRESS=de_DE.UTF-8
export LC_TELEPHONE=de_DE.UTF-8
export LC_MEASUREMENT=de_DE.UTF-8
export LC_IDENTIFICATION=de_DE.UTF-8

I'm not sure – Perl complains aswell when starting it, but locale -a says that de_DE.UTF-8 is available.
>How-To-Repeat:
Open a terminal/firefox/whatever.

Press AltGr (=Mode_switch) + a after activating an Xmodmap like the above.
>Fix:

>Audit-Trail:
From: Michael Stapelberg <michael@stapelberg.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/40582: Mode_switch key press takes 2 seconds to get
	processed
Date: Mon, 9 Feb 2009 20:09:22 +0100

 Hi,

 I just wanted to add that I've now changed my locales to the following:
 export LC_CTYPE=de_DE.UTF-8
 export LC_TIME=de_DE.ISO8859-15
 export LC_NUMERIC=de_DE.ISO8859-15
 export LC_MONETARY=de_DE.ISO8859-15
 export LC_MESSAGES=C
 export LC_PAPER=de_DE.ISO8859-15
 export LC_NAME=de_DE.ISO8859-15
 export LC_ADDRESS=de_DE.ISO8859-15
 export LC_TELEPHONE=de_DE.ISO8859-15
 export LC_MEASUREMENT=de_DE.ISO8859-15
 export LC_IDENTIFICATION=de_DE.ISO8859-15
 (with LC_COLLATE, LC_ALL, LC_LANG unset)

 Those are valid (perl does not complain anymore), but this does not change
 anything for the bug. This is rather logical, as the locales are set before
 the window manager starts and, because the window manager does not bind
 Mode_switch, it doesn't even appear in the chain of events.

 Best regards,
 Michael

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.