标题几乎解释了它。我使用 Caps Lock 更改布局,将其设置为
awful.util.spawn_with_shell("setxkbmap -layout 'us, ru' -option 'grp:caps_toggle'")
在 awesome 的 rc.lua 中,如果这与问题有关。当 Caps 开启时,当我点击标签标签和窗口标签时,它们都不会被选中。任何想法为什么会这样?
更新:依赖的版本。
user@desktop:~$ dpkg -l | grep -E "(libc6)|(libcairo2)|(libdbus-1-3)|(libev4)|(libglib2.0-0)|(libimlib2)|(liblua5.1-0)|(libpango1.0-0)|(libstartup-notification0)|(libx11-6)|(libxcb-icccm4)|(libxcb-image0)|(libxcb-keysyms1)|(libxcb-randr0)|(libxcb-shape0)|(libxcb-util0)|(libxcb-xinerama0)|(libxcb-xtest0)|(libxcb1)|(libxdg-basedir1)|(dbus-x11)"
dbus-x11 1.6.4-1ubuntu4
libc6:i386 2.15-0ubuntu20
libc6-dev:i386 2.15-0ubuntu20
libcairo2:i386 1.12.2-1ubuntu2.2
libdbus-1-3:i386 1.6.4-1ubuntu4
libev4 1:4.11-1
libglib2.0-0:i386 2.34.1-1ubuntu1
libimlib2 1.4.5-1ubuntu1
liblua5.1-0:i386 5.1.5-4
libpango1.0-0:i386 1.30.1-0ubuntu3
libstartup-notification0:i386 0.12-1ubuntu2
libx11-6:i386 2:1.5.0-1
libxcb-icccm4:i386 0.3.9-2
libxcb-image0:i386 0.3.9-1
libxcb-keysyms1:i386 0.3.9-1
libxcb-randr0:i386 1.8.1-1ubuntu1
libxcb-shape0:i386 1.8.1-1ubuntu1
libxcb-util0:i386 0.3.8-2build1
libxcb-xinerama0:i386 1.8.1-1ubuntu1
libxcb-xtest0:i386 1.8.1-1ubuntu1
libxcb1:i386 1.8.1-1ubuntu1
libxcb1-dev:i386 1.8.1-1ubuntu1
libxdg-basedir1 1.1.1-2
更新 2:xev 在 Caps 打开和关闭的点击时输出(唯一的区别是“状态”)
大写关闭:
LeaveNotify event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x0, time 47184554, (49,24), root:(51,45),
mode NotifyUngrab, detail NotifyInferior, same_screen YES,
focus YES, state 256
ButtonPress event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x1200002, time 47184553, (49,24), root:(51,45),
state 0x0, button 1, same_screen YES
EnterNotify event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x0, time 47184554, (49,24), root:(51,45),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus YES, state 256
大写:
LeaveNotify event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x0, time 47185737, (49,24), root:(51,45),
mode NotifyUngrab, detail NotifyInferior, same_screen YES,
focus YES, state 8448
ButtonPress event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x1200002, time 47185737, (49,24), root:(51,45),
state 0x0, button 1, same_screen YES
EnterNotify event, serial 33, synthetic NO, window 0x1200001,
root 0x25f, subw 0x0, time 47185737, (49,24), root:(51,45),
mode NotifyGrab, detail NotifyInferior, same_screen YES,
focus YES, state 8448