summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)