summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2012-02-24 10:54:54 +0000
committerphintuka <phintuka>2012-02-24 10:54:54 +0000
commitdb1f28b2d4ca9af065468505bd7ca692e260d00a (patch)
treee01146634ffa6c53cc594bc9b9d96074e81a0bee
parent01e73abe88e8dafa789c09e6b18d1c846a5b2fc7 (diff)
downloadxineliboutput-db1f28b2d4ca9af065468505bd7ca692e260d00a.tar.gz
xineliboutput-db1f28b2d4ca9af065468505bd7ca692e260d00a.tar.bz2
Added missing locking to set_cursor()
(Thanks to Roland Scheidegger)
-rw-r--r--xine_sxfe_frontend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index 90983dd3..86d0b2f0 100644
--- a/xine_sxfe_frontend.c
+++ b/xine_sxfe_frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_sxfe_frontend.c,v 1.201 2012-02-17 09:23:22 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.202 2012-02-24 10:54:54 phintuka Exp $
*
*/
@@ -515,6 +515,7 @@ static void set_above(sxfe_t *this, int stay_above)
*/
static void set_cursor(Display *dpy, Window win, const int enable)
{
+ XLockDisplay(dpy);
if(enable)
XDefineCursor(dpy, win, None);
else {
@@ -529,6 +530,7 @@ static void set_cursor(Display *dpy, Window win, const int enable)
XDefineCursor(dpy, win, None);
XDefineCursor(dpy, win, no_ptr);
}
+ XUnlockDisplay(dpy);
}
static void update_xinerama_info(sxfe_t *this)