2013-04-26 51 views
6

输入我使用真棒WM开始,发现恼人的,它忽略了输入中的“运行”窗口小部件(mod+R)当目前的布局是不是美国,比方说,RU。此外,它在其启动程序/ mainmenu和“客户端列表”中忽略并输入任何任何输入(鼠标点击,键盘 - 即使不是特定于布局的按键,如Esc!)等等。 我使用Arch Linux的,和~/.xinitrc有以下行:真棒WM忽略非美国布局

setxkbmap -layout "us, ru" -option "grp:caps_toggle, grp_led:caps" 

真棒的rc.lua默认配置既没有布局,也没有具体的大写锁,事情,但我想从我的XINITRC隔离问题并删除CapsLock键切换选项。这根本没有帮助。

xev输出显示,当我切换布局(以大写锁)唯一改变的是 '状态':

- 点击鼠标左键(当前布局:美国,一切都OK) -

LeaveNotify event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), 
    mode NotifyGrab, detail NotifyAncestor, same_screen YES, 
    focus YES, state 256 

EnterNotify event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), 
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES, 
    focus YES, state 256 

KeymapNotify event, serial 33, synthetic NO, window 0x0, 
    keys: 4294967189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
      0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 

ButtonPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13419931, (151,498), root:(835,518), 
    state 0x0, button 1, same_screen YES 

ButtonRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13420028, (151,498), root:(835,518), 
    state 0x100, button 1, same_screen YES 

- 大写锁定(改变布局美国 - > RU) -

KeyPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13420911, (151,498), root:(835,518), 
    state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13420998, (151,498), root:(835,518), 
    state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

- 点击鼠标左键(现在真棒不能看到它的小部件/对话框鼠标点击/ ...) -

LeaveNotify event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13422624, (151,498), root:(835,518), 
    mode NotifyGrab, detail NotifyAncestor, same_screen YES, 
    focus YES, state 8448 

EnterNotify event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13422625, (151,498), root:(835,518), 
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES, 
    focus YES, state 8448 

KeymapNotify event, serial 33, synthetic NO, window 0x0, 
    keys: 4294967189 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
      0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 

ButtonPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13422624, (151,498), root:(835,518), 
    state 0x0, button 1, same_screen YES 

ButtonRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13422721, (151,498), root:(835,518), 
    state 0x2100, button 1, same_screen YES 

- 大写锁定(改变布局RU - >美国) -

KeyPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13423836, (151,498), root:(835,518), 
    state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13423947, (151,498), root:(835,518), 
    state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

- 逸出(例如,关闭真棒的MainMenu的) -

KeyPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13426419, (151,498), root:(835,518), 
    state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES, 
    XLookupString gives 1 bytes: (1b) "" 
    XmbLookupString gives 1 bytes: (1b) "" 
    XFilterEvent returns: False 

KeyRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13426514, (151,498), root:(835,518), 
    state 0x0, keycode 9 (keysym 0xff1b, Escape), same_screen YES, 
    XLookupString gives 1 bytes: (1b) "" 
    XFilterEvent returns: False 

- - 大写锁定(更改布局US - > RU) -

KeyPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13427017, (151,498), root:(835,518), 
    state 0x0, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False 

KeyRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13427096, (151,498), root:(835,518), 
    state 0x2000, keycode 66 (keysym 0xfe08, ISO_Next_Group), same_screen YES, 
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False 

- 逃逸(忽略) -

KeyPress event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13427782, (151,498), root:(835,518), 
    state 0x2000, keycode 9 (keysym 0xff1b, Escape), same_screen YES, 
    XLookupString gives 1 bytes: (1b) "" 
    XmbLookupString gives 1 bytes: (1b) "" 
    XFilterEvent returns: False 

KeyRelease event, serial 33, synthetic NO, window 0x1600001, 
    root 0x95, subw 0x0, time 13427877, (151,498), root:(835,518), 
    state 0x2000, keycode 9 (keysym 0xff1b, Escape), same_screen YES, 
    XLookupString gives 1 bytes: (1b) "" 
    XFilterEvent returns: False 

P.S .:我也想知道在哪里可以找到关键的abbriveations for awesome(例如: “Shift_R”)以及这些Mod1,Mod2等的含义。

UPD:大部分情况与this question中描述的问题基本相同,但作者只说大约锁定切换,而不是默认(Alt-Shift)切换。

回答

3
+0

而简单的解决方法是降级了xorg-xkbcomp到1.2版本。3 – Rast 2013-05-04 13:29:20

+5

最简单的解决方案实际上是编辑/ usr/share/X11/xkb/compat/basic,并删除或注释掉“group [2-4] = AltGr;”行(全部三个)。通过查看此答案中的链接找到X11错误报告。 – 2013-05-15 21:04:56

2

我复制了评论接受的答案这里更好的可视性。

一种解决方法是编辑文件/usr/share/X11/xkb/compat/basic并删除或注释掉行:

group 2 = AltGr; 
group 3 = AltGr; 
group 4 = AltGr; 

的建议here