2013-04-26 86 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