summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2004-03-23 09:29:25 +0000
committerEwald Snel <esnel@users.sourceforge.net>2004-03-23 09:29:25 +0000
commit882c27978d1bf85dc3d7b91b7dcadd232ea74c28 (patch)
treea136c1bbe27d70a8a3886386a231ef4545dca05f /src
parent7769f2c575375e2f668a3e11d1e94faf26a63dcf (diff)
downloadxine-lib-882c27978d1bf85dc3d7b91b7dcadd232ea74c28.tar.gz
xine-lib-882c27978d1bf85dc3d7b91b7dcadd232ea74c28.tar.bz2
Fix Qt bug, which is not really a Qt bug, but an X11-being-asynchronous bug
CVS patchset: 6302 CVS date: 2004/03/23 09:29:25
Diffstat (limited to 'src')
-rw-r--r--src/video_out/x11osd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_out/x11osd.c b/src/video_out/x11osd.c
index a5db75812..d47449434 100644
--- a/src/video_out/x11osd.c
+++ b/src/video_out/x11osd.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: x11osd.c,v 1.6 2004/01/29 01:22:49 miguelfreitas Exp $
+ * $Id: x11osd.c,v 1.7 2004/03/23 09:29:25 esnel Exp $
*
* x11osd.c, use X11 Nonrectangular Window Shape Extension to draw xine OSD
*
@@ -136,6 +136,9 @@ x11osd_drawable_changed (x11osd * osd, Window window)
XFreeColormap (osd->display, osd->cmap);
XDestroyWindow (osd->display, osd->window);
+ /* we need to call XSync(), because otherwise, calling XDestroyWindow()
+ on the parent window could destroy our OSD window twice !! */
+ XSync (osd->display, False);
osd->parent_window = window;
osd->window = XCreateSimpleWindow (osd->display,