From 1aabd6f98652ddf5e2c09ddf2008c106ffd42d5d Mon Sep 17 00:00:00 2001 From: phintuka Date: Fri, 1 Jul 2011 12:56:53 +0000 Subject: Added display locking to update_screen_size() --- xine_sxfe_frontend.c | 9 +++++++-- 1 file 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); } -- cgit v1.2.3