aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2020-01-05 16:50:48 -0500
committerSimon Ser <contact@emersion.fr>2020-01-05 23:03:34 +0100
commit897c36b12cc4b706bcb730a47181d829d7ab9729 (patch)
tree23245af66dea5b04306102bd60d7726658932e28 /include/sway/input
parentb977c02e354bd5b0282796a4b770f5a7888e81be (diff)
downloadsway-897c36b12cc4b706bcb730a47181d829d7ab9729.tar.xz
input/cursor: handle image surface destroy
This adds a listener for the destroy event of the cursor image surface. This prevents a use-after-free when the last visible image surface is freed, there has not been a new cursor set, and the cursor is reshown.
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/cursor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 0bcd262f..5b6f9a9f 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -58,6 +58,7 @@ struct sway_cursor {
uint32_t tool_buttons;
struct wl_listener request_set_cursor;
+ struct wl_listener image_surface_destroy;
struct wl_listener constraint_commit;