diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2020-01-05 16:50:48 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-08 10:27:20 -0500 |
commit | 9d48a3d78d830a5bd432267e3be065d526543a5f (patch) | |
tree | 08c8f9432b3443b52ff1eab84fbdbc57c0d58deb /include | |
parent | swaybar: Fix input device removal (diff) | |
download | sway-9d48a3d78d830a5bd432267e3be065d526543a5f.tar.gz sway-9d48a3d78d830a5bd432267e3be065d526543a5f.tar.zst sway-9d48a3d78d830a5bd432267e3be065d526543a5f.zip |
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')
-rw-r--r-- | include/sway/input/cursor.h | 1 |
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 { | |||
58 | uint32_t tool_buttons; | 58 | uint32_t tool_buttons; |
59 | 59 | ||
60 | struct wl_listener request_set_cursor; | 60 | struct wl_listener request_set_cursor; |
61 | struct wl_listener image_surface_destroy; | ||
61 | 62 | ||
62 | struct wl_listener constraint_commit; | 63 | struct wl_listener constraint_commit; |
63 | 64 | ||