1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 06:38:05 +01:00

wmaker: Moved variables for the XShape extension into the global namespace

This commit is contained in:
Christophe CURIS
2013-10-10 20:38:23 +02:00
committed by Carlos R. Mafra
parent c3c2d8d7f1
commit 81aa311c42
7 changed files with 24 additions and 33 deletions

View File

@@ -38,8 +38,6 @@
#ifdef SHAPE
#include <X11/extensions/shape.h>
extern Bool wShapeSupported;
#endif
struct SwitchPanel {
@@ -522,7 +520,7 @@ WSwitchPanel *wInitSwitchPanel(WScreen *scr, WWindow *curwin, Bool class_only)
XSetWindowBackgroundPixmap(dpy, WMWidgetXID(panel->win), pixmap);
#ifdef SHAPE
if (mask && wShapeSupported)
if (mask && w_global.xext.shape.supported)
XShapeCombineMask(dpy, WMWidgetXID(panel->win), ShapeBounding, 0, 0, mask, ShapeSet);
#endif
if (pixmap)