ALT key kills window/application

Polytropon freebsd at edvax.de
Thu Feb 26 18:20:24 PST 2009


On Thu, 26 Feb 2009 18:01:54 -0800 (PST), devindg <dgarcia.tamu at gmail.com> 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, ...


More information about the freebsd-questions mailing list