栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

为什么XGrabKey会生成额外的聚焦和聚焦事件?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

为什么XGrabKey会生成额外的聚焦和聚焦事件?

最后,正如您所知,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



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/412481.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号