From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 02:20:24 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75BC11065670 for ; Fri, 27 Feb 2009 02:20:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADFC8FC1A for ; Fri, 27 Feb 2009 02:20:23 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-52-176.dynamic.qsc.de [92.196.52.176]) by mx02.qsc.de (Postfix) with ESMTP id B408A16C0025; Fri, 27 Feb 2009 03:20:22 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n1R2KGuf002824; Fri, 27 Feb 2009 03:20:16 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 27 Feb 2009 03:20:16 +0100 From: Polytropon To: devindg Message-Id: <20090227032016.c0252454.freebsd@edvax.de> In-Reply-To: <22238102.post@talk.nabble.com> References: <22238102.post@talk.nabble.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ALT key kills window/application X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2009 02:20:24 -0000 On Thu, 26 Feb 2009 18:01:54 -0800 (PST), devindg wrote: > I don't know if this is a WM issue or an X issue, but whatever it is, it's > hard to diagnose. This nuisance started to occur after an upgrade of all my > ports. > > I ran Xev and pressed ALT to see what it would return. Here it is: > > ClientMessage event, serial 33, synthetic YES, window 0x1800001, > message_type 0xdd (WM_PROTOCOLS), format 32, message 0xdb (WM_DELETE_WINDOW) This looks strange. Pressing the (left) Alt key sould give something like this: KeyPress event, serial 24, synthetic NO, window 0x1200001, root 0x73, subw 0x0, time 3045197954, (505,110), root:(1018,180), state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 27, synthetic NO, window 0x1200001, root 0x73, subw 0x0, time 3045198051, (505,110), root:(1018,180), state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False The xev output you presented doesn't indicate that an Alt key has been pressed. It indicates that when pressing the Alt key issues a command to the window manager (or from it?) - WM_PROTOCOLS - to close the window focussed at the moment - WM_DELETE_WINDOW. This isn't an action the Alt key should be mapped to. > (4) http://www.nabble.com/file/p22238102/xorg.conf xorg.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Didn't you define a keyboard layout in xorg.conf? I'm not sure about how this is to be done after the massive X update (I read somethink like DBUS is needed now to select keyboard layout). Maybe you can try something like this: Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "de" Option "AutoRepeat" "250 30" EndSection Insert the layout you need (e. g. US). -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...