From: Christophe CURIS <[email protected]>

Signed-off-by: Christophe CURIS <[email protected]>
---
 src/workspace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/workspace.c b/src/workspace.c
index 1365cc9..5d33fc9 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -371,7 +371,8 @@ static void showWorkspaceName(WScreen * scr, int workspace)
        WMDrawString(scr->wmscreen, text, scr->white, 
w_global.workspace.font_for_name, 2, 2, name, len);
 
 #ifdef SHAPE
-       XShapeCombineMask(dpy, scr->workspace_name, ShapeBounding, 0, 0, mask, 
ShapeSet);
+       if (w_global.xext.shape.supported)
+               XShapeCombineMask(dpy, scr->workspace_name, ShapeBounding, 0, 
0, mask, ShapeSet);
 #endif
        XSetWindowBackgroundPixmap(dpy, scr->workspace_name, text);
        XClearWindow(dpy, scr->workspace_name);
-- 
1.8.4.rc3


-- 
To unsubscribe, send mail to [email protected].

Reply via email to