[webkit-gtk] Kiosk-style mouse

Sven Schwedas sven.schwedas at tao.at
Mon Sep 22 23:19:41 PDT 2014


On 2014-09-23 03:14, Gavin Lambert wrote:
> Is it possible to make WebKit/GTK treat mouse events only in a very limited
> way?

HTML/CSS/JS "solutions" only sound nice until someone fucks you over
with XSS.

The safest way is to disable mouse buttons completely in Xorg (via
xorg.conf/xinput).

Additionally, drag and drop can be "disabled" in GTK by setting a
dnd-drag-threshold ≥ screen size.

For the mouse cursor, I made a simple "semi-transparent circle" cursor
similar to the one you can enable in Android – it's not "mouse-y" (so
people don't go "ew, a PC"), yet it helps on more shoddy touchscreens.

-- 
Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas
Systemadministrator
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167
http://software.tao.at

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: <https://lists.webkit.org/pipermail/webkit-gtk/attachments/20140923/43ff0a74/attachment.sig>


More information about the webkit-gtk mailing list