xorg 触摸屏:如何不将鼠标悬停在最新的点击上

发布于 2024-12-28 06:21:48 字数 1348 浏览 1 评论 0原文

我有一个嵌入式 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂牵梦绕锁你心扉 2025-01-04 06:21:48

您需要一个适合触摸屏的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文