mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +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
@@ -81,11 +81,6 @@ extern WShortKey wKeyBindings[WKBD_LAST];
|
||||
|
||||
#define MOD_MASK wPreferences.modifier_mask
|
||||
|
||||
#ifdef SHAPE
|
||||
extern Bool wShapeSupported;
|
||||
extern int wShapeEventBase;
|
||||
#endif
|
||||
|
||||
#ifdef KEEP_XKB_LOCK_STATUS
|
||||
extern int wXkbEventBase;
|
||||
#endif
|
||||
@@ -551,7 +546,7 @@ static void handleExtensions(XEvent * event)
|
||||
xkbevent = (XkbEvent *) event;
|
||||
#endif /*KEEP_XKB_LOCK_STATUS */
|
||||
#ifdef SHAPE
|
||||
if (wShapeSupported && event->type == (wShapeEventBase + ShapeNotify)) {
|
||||
if (w_global.xext.shape.supported && event->type == (w_global.xext.shape.event_base + ShapeNotify)) {
|
||||
handleShapeNotify(event);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user