xorg 触摸屏:如何不将鼠标悬停在最新的点击上
我有一个嵌入式 Linux、xorg 和 gtk3 的触摸屏。 我的问题是,单击后鼠标指针停留在 单击的按钮使其颜色与其他按钮不同。 我需要的是鼠标指针在单击后消失。 看来为了得到这个结果我需要直接在 xorg 中工作 (而不是来自 gtk)。 我粘贴我的 xorg.conf:
Section "ServerLayout"
Identifier "Single head configuration"
InputDevice "touchscreen" "CorePointer"
Screen 0 "Screen0" Absolute 0 0
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "evdev"
Option "XkbLayout" "it"
Option "Device" "/dev/input/event2"
EndSection
Section "InputDevice"
Identifier "touchscreen"
# Driver "evdev"
Driver "tslib"
Option "Calibration" "200 3850 300 3850"
Option "Debug"
Option "SwapAxes" "True"
Option "Device" "/dev/input/event1"
# Option "MinX" "0"
# Option "MaxX" "800"
# Option "MinY" "0"
# Option "MaxY" "480"
# Option "MinX" "200"
# Option "MaxX" "3850"
# Option "MinY" "300"
# Option "MaxY" "3850"
Option "MoveLimit" "10"
Option "DeviceName" "touchscreen"
# Option "ReportingMode" "Raw"
Option "Protocol" "Auto"
Option "longtouched_action" "down"
Option "longtouched_button" "1"
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
Option "SendCoreEvents" "On"
EndSection
I have a touchscreen with linux embedded, xorg and gtk3.
My problem is that after a click the mouse pointer stucks over
the clicked button making his color different from other buttons.
What I would need is that the mouse pointer would go away after the click.
It seems that in order to have this result I need to work directly in xorg
(and not from gtk).
I paste my xorg.conf:
Section "ServerLayout"
Identifier "Single head configuration"
InputDevice "touchscreen" "CorePointer"
Screen 0 "Screen0" Absolute 0 0
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "evdev"
Option "XkbLayout" "it"
Option "Device" "/dev/input/event2"
EndSection
Section "InputDevice"
Identifier "touchscreen"
# Driver "evdev"
Driver "tslib"
Option "Calibration" "200 3850 300 3850"
Option "Debug"
Option "SwapAxes" "True"
Option "Device" "/dev/input/event1"
# Option "MinX" "0"
# Option "MaxX" "800"
# Option "MinY" "0"
# Option "MaxY" "480"
# Option "MinX" "200"
# Option "MaxX" "3850"
# Option "MinY" "300"
# Option "MaxY" "3850"
Option "MoveLimit" "10"
Option "DeviceName" "touchscreen"
# Option "ReportingMode" "Raw"
Option "Protocol" "Auto"
Option "longtouched_action" "down"
Option "longtouched_button" "1"
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
Option "SendCoreEvents" "On"
EndSection
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要一个适合触摸屏的 GTK+ 主题,当鼠标悬停在按钮上时不会预亮按钮。不知道是否存在这样的主题。
You need a GTK+ theme suitable for touchscreens, one that doesn't prelight buttons when the mouse is over them. I don't know if such themes exist.