mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +01:00
wmaker: Do not call XShape function if the server did not say it supports it
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
787036551f
commit
f76ed31fa3
@@ -371,6 +371,7 @@ 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
|
||||
if (w_global.xext.shape.supported)
|
||||
XShapeCombineMask(dpy, scr->workspace_name, ShapeBounding, 0, 0, mask, ShapeSet);
|
||||
#endif
|
||||
XSetWindowBackgroundPixmap(dpy, scr->workspace_name, text);
|
||||
|
||||
Reference in New Issue
Block a user