summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2011-07-01 12:56:53 +0000
committerphintuka <phintuka>2011-07-01 12:56:53 +0000
commit1aabd6f98652ddf5e2c09ddf2008c106ffd42d5d (patch)
treea0e4329f85b5c12fab9a453420e6fa46a5330403
parent603a35f42165b30719cba2754caced2208b3d7f5 (diff)
downloadxineliboutput-1aabd6f98652ddf5e2c09ddf2008c106ffd42d5d.tar.gz
xineliboutput-1aabd6f98652ddf5e2c09ddf2008c106ffd42d5d.tar.bz2
Added display locking to update_screen_size()
-rw-r--r--xine_sxfe_frontend.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/xine_sxfe_frontend.c b/xine_sxfe_frontend.c
index bd27df51..145e1970 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.163 2011-07-01 12:49:16 phintuka Exp $
+ * $Id: xine_sxfe_frontend.c,v 1.164 2011-07-01 12:56:53 phintuka Exp $
*
*/
@@ -553,8 +553,13 @@ static void update_xinerama_info(sxfe_t *this)
*/
static void update_screen_size(sxfe_t *this)
{
- this->x.width = DisplayWidth(this->display, this->screen);
+ XLockDisplay (this->display);
+
+ this->x.width = DisplayWidth(this->display, this->screen);
this->x.height = DisplayHeight(this->display, this->screen);
+
+ XUnlockDisplay(this->display);
+
update_xinerama_info(this);
}