weston/clients
Marius Vlad cc69dc447e clients/window: Defer closing of window
Instead of closing the window directly by calling close_handler() use a
deferred task to do that instead.

That way we avoid a potential invalid access on a link which was
previously removed, due to the fact both window_destroy() and
touch_handle_up() traverse the same list.

This is an alternative to 841.

Fixes: #607.

Suggested-by: Pekka Paalanen <pekka.paalanen@collabora.com>
Reported-by: He Yong <hyyoxhk@163.com>
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2022-06-22 15:29:05 +03:00
..
calibrator.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
clickdot.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
cliptest.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
confine.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
content_protection.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
desktop-shell.c clients/desktop-shell: Add a displayname= option for launchers 2022-02-24 00:38:55 +02:00
dnd.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
editor.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
eventdemo.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
flower.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
fullscreen.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
image.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
ivi-shell-user-interface.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
keyboard.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
meson.build clients/simple-egl: Handle buffer scale and transform 2022-05-31 12:08:06 +00:00
multi-resource.c multi-resource: Convert to xdg-shell 2021-10-14 09:28:04 +00:00
nested-client.c Unify the include style of shared/ headers 2019-10-04 16:04:48 +03:00
nested.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
presentation-shm.c clients/presentation-shm: use xdg_shell instead of wl_shell 2019-06-27 17:44:19 +00:00
resizor.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
scaler.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
screenshot.c screenshooter: rename some functions to avoid conflicts 2020-10-27 12:19:39 +00:00
simple-damage.c clients/simple-*: Add appids for other clients 2022-01-21 18:39:23 +00:00
simple-dmabuf-egl.c clients/simple-dmabuf-*: Use gbm_bo_create_with_modifiers2 2022-05-23 13:25:34 +00:00
simple-dmabuf-feedback.c clients/simple-dmabuf-*: Use gbm_bo_create_with_modifiers2 2022-05-23 13:25:34 +00:00
simple-dmabuf-v4l.c clients/simple-dmabuf-*: Increase buffer limit to four 2022-02-17 12:26:41 +01:00
simple-egl.c clients/simple-egl: Fix angle reset on benchmark interval 2022-06-14 13:11:59 +02:00
simple-im.c log: remove "%m" from format strings by using strerror(errno) 2019-05-02 22:10:30 +02:00
simple-shm.c clients/simple-*: Add appids for other clients 2022-01-21 18:39:23 +00:00
simple-touch.c simple-touch: Exit on xdg_toplevel::close 2021-10-15 16:52:08 +00:00
smoke.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
stacking.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
subsurfaces.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
terminal.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
touch-calibrator.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
transformed.c clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00
weston-debug.c weston-debug: Handle destruction of stream description 2021-06-01 13:55:33 +03:00
window.c clients/window: Defer closing of window 2022-06-22 15:29:05 +03:00
window.h clients/window: Add functions to set/retrieve app_id 2022-01-21 18:39:23 +00:00