comparison gui/wm/ws.c @ 34462:f305c10d20f8

Simplify XShape handling and setting of wsUseXShape.
author ib
date Thu, 12 Jan 2012 16:01:32 +0000
parents e3d6a010e8ae
children c44d95befb0a
comparison
equal deleted inserted replaced
34461:e3d6a010e8ae 34462:f305c10d20f8
271 271
272 if (!wsUseXShm) 272 if (!wsUseXShm)
273 mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_WS_NoXshm); 273 mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_WS_NoXshm);
274 274
275 #ifdef CONFIG_XSHAPE 275 #ifdef CONFIG_XSHAPE
276
277 if (!XShapeQueryExtension(wsDisplay, &eventbase, &errorbase)) 276 if (!XShapeQueryExtension(wsDisplay, &eventbase, &errorbase))
278 wsUseXShape = 0; 277 #endif
279
280 #else
281 wsUseXShape = 0; 278 wsUseXShape = 0;
282 #endif
283 279
284 if (!wsUseXShape) 280 if (!wsUseXShape)
285 mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_WS_NoXshape); 281 mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_WS_NoXshape);
286 282
287 XSynchronize(wsDisplay, True); 283 XSynchronize(wsDisplay, True);