diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-25 22:19:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-26 08:28:53 +0100 |
commit | 2e8c09f3fe468abba9c307ba3d7b2d22908e1172 (patch) | |
tree | 249fa794799d0fb89ad3aac287034c2932475133 /src/sna/sna.h | |
parent | 12a349974b63a47ad55384abe0d7a839af48f31a (diff) |
sna/dri2: Hook into ClientGone callback to clear dangling references
As the Window may exist for multiple Clients, we cannot rely on the
destruction of the Window decoupling all outstanding events and
preventing chasing a stale Client pointer.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80157
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 8640f2f4..7b89f8c3 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -114,6 +114,7 @@ struct sna_cursor; struct sna_crtc; struct sna_client { + struct list events; int is_compositor; /* only 4 bits used */ }; @@ -334,6 +335,7 @@ struct sna { #if HAVE_DRI2 void *flip_pending; + unsigned client_count; #endif } dri2; |