weston/clients
Ander Conselvan de Oliveira a57c9f1b90 window: Ignore input events from subsurfaces
Toytoolkit was not designed to handle input from subsurfaces and
instead it expects subsurfaces to have an empty input region. That way
input events for subsurfaces are generated on the main surface and
there is no need to convert coordinates before reporting the event to
the user.

However it is possible that a subsurface has a non-empty input region,
but in that case those events aren't properly processed. The function
window_find_widget() assumes the coordinates are in the main surface
coordinate space, and ends up chosing the wrong widget.

This patch changes the input code to completely ignore input events from
subsurfaces. This option was chosen instead of ensuring that the input
region on those surfaces is always empty since there's no enforcement
that a subsurface should completely overlap with the main surface. If
an event happens in the area of the surface that doesn't overlap, the
event could cause a completely unrelated surface to be picked.

https://bugs.freedesktop.org/show_bug.cgi?id=78207
2014-05-12 12:50:00 -07:00
..
calibrator.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
clickdot.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
cliptest.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
desktop-shell.c desktop-shell: Fix black edges on scaled desktop pattern 2014-05-09 14:03:05 -07:00
dnd.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
editor.c editor: Fix cursor positioning with pointer and touch 2014-05-09 15:32:20 -07:00
eventdemo.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
flower.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
fullscreen.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
gears.c Rename invocations of frame_create that were missed by ee7fefcf 2013-10-21 21:04:08 -07:00
glmatrix.c Add signedness warning flag and fix fallout 2012-03-30 11:52:39 -04:00
image.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
keyboard.c clients: Initialize label in keyboard handling code 2014-05-09 12:33:20 -07:00
matrix3.xpm clients: import glmatrix.c and matrix3.xpm 2011-11-18 14:45:04 +02:00
multi-resource.c multi-resource: Don't include non-existing xmalloc.h 2013-10-10 19:21:05 -07:00
nested-client.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
nested.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
resizor.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
scaler.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
screenshot.c screenshooter: Add missing newline and use program_invocation_short_name 2013-08-12 22:15:38 -07:00
simple-egl.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
simple-shm.c simple-shm: Add wl_fullscreen_shell support 2014-04-02 21:26:00 -07:00
simple-touch.c simple-touch: Handle multiple seats properly 2014-05-09 12:50:11 -07:00
smoke.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
stacking.c Revert "stacking: Remove transient window support" 2014-02-01 01:53:05 -08:00
subsurfaces.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
terminal.c terminal: Convert all *alloc's to x*alloc's. 2014-04-29 13:25:50 -07:00
transformed.c Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
weston-info.c weston-info: fix log message typo 2014-04-21 15:40:26 -07:00
weston-simple-im.c Add more missing config.h #includes 2013-08-26 14:59:14 -07:00
window.c window: Ignore input events from subsurfaces 2014-05-12 12:50:00 -07:00
window.h Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00
wscreensaver-glue.c screensaver: fix decoding of transparency in xpm files 2012-09-06 21:08:12 -04:00
wscreensaver-glue.h Never include wayland-util.h directly 2011-11-22 09:35:14 -05:00
wscreensaver.c Rename invocations of frame_create that were missed by ee7fefcf 2013-10-21 21:04:08 -07:00
wscreensaver.h Make sure config.h is included before any system headers 2014-04-07 10:22:28 -07:00