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:
committed by
Carlos R. Mafra
parent
c3c2d8d7f1
commit
81aa311c42
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user