Awesome window manager doesn't react on clicks at toolbar when Caps Lock is on

喜欢而已 提交于 2019-12-10 20:23:27

问题


The title pretty much explains it. I use Caps Lock to change layouts, setting it with

awful.util.spawn_with_shell("setxkbmap -layout 'us, ru' -option 'grp:caps_toggle'")

in awesome's rc.lua, if that has anything to do with the issue. When Caps is on, neither tag tabs nor window tabs get selected when I click on them. Any ideas why is it this way?

Update: Versions of dependencies.

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              

UPDATE 2: Output of xev on clicks with Caps on and off (the only difference is "state")

Caps Off:

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

Caps On:

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

来源:https://stackoverflow.com/questions/14027324/awesome-window-manager-doesnt-react-on-clicks-at-toolbar-when-caps-lock-is-on

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!