weston/clients
Ander Conselvan de Oliveira 23900f70e5 input: Empty the current input region when configuring pointer surfaces
The input region of the cursor surface is set to empty in
pointer_cursor_surface_configure(). Since during the commit process
this function is called before the pending input region is made
current, it empties surface->pending.input instead of surface->input.

But pointer_cursor_surface_configure() is also called from
pointer_set_cursor() in order to map the cursor even if there isn't a
subsequent attach and commit to the cursor surface. In that case,
surface->input is never emptied, since the configure function emptied
only the pending input region and there wasn't a commit that made it
effective.

Fix this by emptying both pending and current input regions. The latter
shouldn't cause problems since the surface can't have a role prior to
being assigned the cursor role, so it shouldn't be mapped in the first
place.

Also change toytoolkit so that it triggers the bug.

https://bugs.freedesktop.org/show_bug.cgi?id=73711
2014-02-01 01:12:24 -08:00
..
.gitignore clients: add scaler test app 2013-12-16 22:55:47 -08:00
calibrator.c Add touch support for wl_shell_surface_move 2013-08-16 10:56:00 -07:00
clickdot.c Rename frame_create and frame_set_child_size with a window_ prefix 2013-10-13 22:12:16 -07:00
cliptest.c Rename frame_create and frame_set_child_size with a window_ prefix 2013-10-13 22:12:16 -07:00
desktop-shell.c clients/desktop-shell: check OOM conditions 2014-01-19 22:01:12 -08:00
dnd.c distinguish touch screen and pointer dnd in client 2013-11-25 16:32:12 -08:00
editor.c editor: Add missing touch-to-activate for the entries 2014-01-07 10:42:41 -08:00
eventdemo.c Rename frame_create and frame_set_child_size with a window_ prefix 2013-10-13 22:12:16 -07:00
flower.c westoy: Remove window_touch_move 2013-11-13 16:37:36 -08:00
fullscreen.c westoy: Remove window_touch_move 2013-11-13 16:37:36 -08: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 westoy: Remove unused support for window parents 2013-11-13 16:43:03 -08:00
keyboard.c keyboard: Make debug output less verbose 2014-01-09 23:58:14 -08: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 nested-client: Exit if we fail to create the nested client struct 2013-10-10 16:50:18 -07:00
nested.c use xzalloc wrapper instead 2014-01-19 22:01:23 -08:00
resizor.c resizor: Don't resize if maximized 2014-01-17 15:31:33 -08:00
scaler.c protocol: rename wl_surface_scaler to wl_viewport 2014-01-08 21:33:19 -08:00
screenshot.c screenshooter: Add missing newline and use program_invocation_short_name 2013-08-12 22:15:38 -07:00
simple-egl.c simple-egl: Fix -Wsign-compare compiler warning 2014-01-27 21:12:33 -08:00
simple-shm.c Add more missing config.h #includes 2013-08-26 14:59:14 -07:00
simple-touch.c clients: remove superfluous call 2013-09-13 15:12:23 -07:00
smoke.c Add touch support for wl_shell_surface_move 2013-08-16 10:56:00 -07:00
stacking.c stacking: Set a keyboard focus handler so we can repaint the frame 2013-12-05 15:37:29 -08:00
subsurfaces.c westoy: Add an option to explicitly disable cairo on a widget 2014-01-09 15:03:15 -08:00
terminal.c terminal: use xstrdup instead to handle OOM 2014-01-19 22:01:30 -08:00
transformed.c westoy: Remove window_touch_move 2013-11-13 16:37:36 -08:00
weston-info.c weston-info: free allocated memory and check OOM conditions 2014-01-19 22:02:37 -08:00
weston-simple-im.c Add more missing config.h #includes 2013-08-26 14:59:14 -07:00
window.c input: Empty the current input region when configuring pointer surfaces 2014-02-01 01:12:24 -08:00
window.h keyboard: Don't strcat() into a strdup()ed string 2014-01-09 23:45:18 -08: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 Add signedness warning flag and fix fallout 2012-03-30 11:52:39 -04:00