xorg触摸屏:如何不让鼠标停留在最新的点击 [英] xorg touchscreen: how to do not keep mouse over the latest click

查看:248
本文介绍了xorg触摸屏:如何不让鼠标停留在最新的点击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有嵌入式Linux,xorg和gtk3的触摸屏。
我的问题是,点击鼠标指针后,将点击按钮使其颜色与其他按钮不同。
我需要的是鼠标指针会在点击后消失。
似乎为了得到这个结果,我需要直接在xorg
(而不是从gtk)中工作。
我粘贴我的xorg.conf:

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


推荐答案

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

这篇关于xorg触摸屏:如何不让鼠标停留在最新的点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆