summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-04-02 08:36:14 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-04-02 09:49:53 +0100
commitf98b2e164637292c2425f6e6d2c22bd9a2800f8e (patch)
tree5c9aa6320cb7057f1b3af81244896e71b6b9a431 /src/sna/sna.h
parenta926d9f68231ac0f2a1f54c7a722979a8ed6e9e1 (diff)
sna: Prevent signal re-entrancy into cursor update routines
As we may need to allocate from within the cursor update, we are prone to re-entrancy issues within malloc()/free(). To avoid these we need to block SigIO (for pointer updates) whilst in the critical section. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 00175828..3d0b1cfa 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -290,6 +290,7 @@ struct sna {
unsigned serial;
uint32_t fg, bg;
+ int size;
int last_x;
int last_y;