Page 1 of 1

Disable press and hold menu on touchscreen

Posted: Mon Jul 27, 2020 7:29 pm
by aleksandar
I have just connected a touchscreen monitor to my Pi 4, running Buster Raspbian.

The touchscreen worked out of the box, however there were two things I wanted to do to set it up for my Node-RED dashboard:

1. remove the mouse pointer
2. remove the right click menu appearing when pressing and holding on the screen

1. I found a solution to removing the mouse, by installing and running unclutter, however even with unclutter -idle 0, you can still see the mouse pointer when you touch the screen... Is there a way to completely remove it?

2. I can find a tonne of articles on disabling the right click menu and also on enabling the right click menu when in touchscreen mode, but I can't find a way to remove the menu from appearing when pressing and holding the screen. You see, in my Node-RED dashboard I have some nodes that need to press and hold to work, and I don't want the pesky menu appearing when I do this.
I have installed and tried out xmodmap and mapped my 3rd button to 0 i.e. xmodmap -r "pointer = 1 2 0", which works fine with the mouse. It actually disables right click, so that you can't bring up the menu with your mouse, but as soon as you touch the screen and hold down for a few seconds, the menu appears ago. Can anyone help with this?

Re: Disable press and hold menu on touchscreen

Posted: Fri Jul 31, 2020 8:42 pm
by aleksandar
I would have thought that this was bread and butter Raspberry Pi when connected to a touchscreen, yet no one has replied and I also can't seem to find an answer, although I'll dig deeper and see if there is a solution.

Re: Disable press and hold menu on touchscreen

Posted: Sat Aug 01, 2020 7:00 am
by ganzgustav22
You can start xorg with the -nocursor option to remove the pointer completely.