You are not logged in.

#1 2013-09-03 11:12:45

cjxgm
Member
From: Zhejiang, China
Registered: 2013-09-03
Posts: 9
Website

[GNOME] How to show mouse cursor even when no hardware mouse exists?

I removed some lines in xorg.conf.d/10-evdev.conf so that the Xorg can not detect a mouse, so that I can take over /dev/input/mice, do some processing, and send mouse events using xdotool.
But gnome shell hide the mouse cursor when there is no hardware mouse exists(It must get this information from Xorg!). Even if I move the cursor with xdotool, the cursor don't show up. Only if I turn on magnifier, cursor can show up, but it's slow.
GDM is the same as gnome shell.
I say it's a gnome problem because in pure X environment(startx with only some xterms) everything works fine.

Maybe it's because gnome thinks it's a touch screen computer and don't need a cursor?
How can I force gnome to show me the cursor(without the magnifier)?

BTW, for those who want to know what I was doing: There're 3 physical buttons on my laptop, for left/middle/right mouse button respectively. But I often need to use middle mouse click, middle mouse drag and middle mouse scroll. With only one middle button, I cannot achieve those easily and I don't want to plug in an external mouse. So I came up a solution: Hold down middle button, then release it within, say, 1 second, generate a middle click. Hold down middle button and move mouse within 1 second generate middle mouse drag. Hold down middle button, wait for 1 second and then move the mouse generate middle mouse scroll. I failed in grab the mouse globally with Xcb, so I turn to my current solution. Let me know if you guys have a better solution.

Sorry for my poor English.

Offline

Board footer

Powered by FluxBB