# HG changeset patch # User ib # Date 1326383453 0 # Node ID c4731df07bfee39cf06f8db26bca80d642868ae4 # Parent a45b07efa3b8114d170693aa75671263e64e2b00 Always inform / warn about missing shared memory / shape extension Don't do so only after querying the extension. diff -r a45b07efa3b8 -r c4731df07bfe gui/wm/ws.c --- a/gui/wm/ws.c Thu Jan 12 15:16:24 2012 +0000 +++ b/gui/wm/ws.c Thu Jan 12 15:50:53 2012 +0000 @@ -267,14 +267,15 @@ } if (!XShmQueryExtension(wsDisplay)) { - mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_WS_NoXshm); wsUseXShm = 0; } + if (!wsUseXShm) + mp_msg(MSGT_GPLAYER, MSGL_INFO, MSGTR_WS_NoXshm); + #ifdef CONFIG_XSHAPE if (!XShapeQueryExtension(wsDisplay, &eventbase, &errorbase)) { - mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_WS_NoXshape); wsUseXShape = 0; } @@ -282,6 +283,9 @@ wsUseXShape = 0; #endif + if (!wsUseXShape) + mp_msg(MSGT_GPLAYER, MSGL_WARN, MSGTR_WS_NoXshape); + XSynchronize(wsDisplay, True); wsScreen = DefaultScreen(wsDisplay);