diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-02 08:36:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-02 09:49:53 +0100 |
commit | f98b2e164637292c2425f6e6d2c22bd9a2800f8e (patch) | |
tree | 5c9aa6320cb7057f1b3af81244896e71b6b9a431 /src/sna/sna.h | |
parent | a926d9f68231ac0f2a1f54c7a722979a8ed6e9e1 (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.h | 1 |
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; |