mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
wmaker: Moved definition of X Contexts into the global variables structure
This commit is contained in:
committed by
Carlos R. Mafra
parent
e2ce62eb5b
commit
ec91b9f68e
@@ -46,9 +46,6 @@
|
||||
|
||||
/****** Global Variables ******/
|
||||
|
||||
/* contexts */
|
||||
extern XContext wWinContext;
|
||||
|
||||
#ifdef SHAPE
|
||||
extern Bool wShapeSupported;
|
||||
#endif
|
||||
@@ -191,7 +188,7 @@ void wClientConfigure(WWindow * wwin, XConfigureRequestEvent * xcre)
|
||||
WWindow *sibling;
|
||||
|
||||
if ((xcre->value_mask & CWSibling) &&
|
||||
(XFindContext(dpy, xcre->above, wWinContext, (XPointer *) & desc) == XCSUCCESS)
|
||||
(XFindContext(dpy, xcre->above, w_global.context.client_win, (XPointer *) & desc) == XCSUCCESS)
|
||||
&& (desc->parent_type == WCLASS_WINDOW)) {
|
||||
sibling = desc->parent;
|
||||
xwc.sibling = sibling->frame->core->window;
|
||||
|
||||
Reference in New Issue
Block a user