dix: Don't send touch end to clients that do async grab without touches

GTK3 menu widget creates a selection for touch and other events and
after receiving touch events creates an async grab that excludes touch
events. Unfortunately it relies on X server not sending the touch end
event in order to function properly. Sending touch end event will cause
it to think that the initiating touch ended and when it actually ends,
the ButtonRelease event will make it think that the menu should be
closed. As a result, the menu will be open only for the duration of the
touch making it useless.

This commit reverts f682e0563f736ed2c2c612ed575e05b6e3db945e.

Fixes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1255

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
1 file changed
tree: af016d6cd77f52e567d22ad6eff2832594284ab2
  1. .gitlab-ci/
  2. composite/
  3. config/
  4. damageext/
  5. dbe/
  6. dix/
  7. doc/
  8. dri3/
  9. exa/
  10. fb/
  11. glamor/
  12. glx/
  13. hw/
  14. include/
  15. m4/
  16. man/
  17. mi/
  18. miext/
  19. os/
  20. present/
  21. pseudoramiX/
  22. randr/
  23. record/
  24. render/
  25. test/
  26. Xext/
  27. xfixes/
  28. Xi/
  29. xkb/
  30. .appveyor.yml
  31. .dir-locals.el
  32. .gitignore
  33. .gitlab-ci.yml
  34. .travis.yml
  35. COPYING
  36. meson.build
  37. meson_options.txt
  38. README.md
  39. xorg-server.m4
  40. xorg-server.pc.in
  41. xserver.ent.in
README.md

X Server

The X server accepts requests from client applications to create windows, which are (normally rectangular) “virtual screens” that the client program can draw into.

Windows are then composed on the actual screen by the X server (or by a separate composite manager) as directed by the window manager, which usually communicates with the user via graphical controls such as buttons and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the following article: https://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the Xorg mailing list:

https://lists.freedesktop.org/mailman/listinfo/xorg

The primary development code repository can be found at:

https://gitlab.freedesktop.org/xorg/xserver

For patch submission instructions, see:

https://www.x.org/wiki/Development/Documentation/SubmittingPatches

As with other projects hosted on freedesktop.org, X.Org follows its Code of Conduct, based on the Contributor Covenant. Please conduct yourself in a respectful and civilized manner when using the above mailing lists, bug trackers, etc:

https://www.freedesktop.org/wiki/CodeOfConduct