最后,正如您所知,Linux意味着自由,我修改了xserver摆脱了抓斗式对焦:
sudo apt-get build-dep xorg-serverapt-get source xorg-servercd xorg-server-*#modify or patch dix/events.c: comment off "DoFocusEvents(keybd, oldWin, grab->window, NotifyGrab);" in ActivateKeyboardGrab(), comment off "DoFocusEvents(keybd, grab->window, focusWin, NotifyUngrab);" in DeactivateKeyboardGrab()sudo apt-get install devscriptsdebuild -us -uc #"-us -uc" to avoid the signature stepcd ..sudo dpkg --install xserver-xorg-core_*.deb#clear dependencies:sudo apt-mark auto $(apt-cache showsrc xorg-server | grep Build-Depends | perl -p -e 's/(?:[[(].+?[])]|Build-Depends:|,||)//g')sudo apt-get autoremove
而且我还需要在gtk上下文菜单中摆脱XGrabKeyboard:
sudo apt-get build-dep gtk+2.0apt-get source gtk+2.0cd gtk+2.0-*#modify or patch it: add "return TRUE;" in first line of popup_grab_on_window() of gtk/gtkmenu.cdpkg-source --commitdebuild -us -uc #"-us -uc" to avoid the signature step, maybe need: sudo apt-get install devscriptscd ..sudo dpkg --install libgtk2.0-0_*.deb#clear dependencies:sudo apt-mark auto $(apt-cache showsrc gtk+2.0 | grep Build-Depends | perl -p -e 's/(?:[[(].+?[])]|Build-Depends:|,||)//g')sudo apt-get autoremove
现在,myboard.py正常运行。
如果您使用的是ubuntu raring-updates版本,则可以尝试:
https://pre.google.com/p/diyism-myboard/downloads/detail?name=xserver-xorg-
core_1.13.3-0ubuntu6.2_i386.deb
和:
https://pre.google.com/p/diyism-
myboard/downloads/detail?name=libgtk2.0-0_2.24.17-0ubuntu2_i386.deb
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)