changeset 34462:f305c10d20f8

Simplify XShape handling and setting of wsUseXShape.
author ib
date Thu, 12 Jan 2012 16:01:32 +0000
parents e3d6a010e8ae
children c44d95befb0a
files gui/wm/ws.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/gui/wm/ws.c	Thu Jan 12 15:53:20 2012 +0000
+++ b/gui/wm/ws.c	Thu Jan 12 16:01:32 2012 +0000
@@ -273,13 +273,9 @@
         mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_WS_NoXshm);
 
 #ifdef CONFIG_XSHAPE
-
     if (!XShapeQueryExtension(wsDisplay, &eventbase, &errorbase))
-        wsUseXShape = 0;
-
-#else
+#endif
     wsUseXShape = 0;
-#endif
 
     if (!wsUseXShape)
         mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_WS_NoXshape);