mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
added compatib. code for XInternAtoms
This commit is contained in:
@@ -755,8 +755,17 @@ WMCreateScreenWithRContext(Display *display, int screen, RContext *context)
|
||||
XFreePixmap(display, blank);
|
||||
}
|
||||
|
||||
#ifdef HAVE_XINTERNATOMS
|
||||
XInternAtoms(display, atomNames, sizeof(atomNames)/sizeof(char*), False,
|
||||
atoms);
|
||||
#else
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < sizeof(atomNames)/sizeof(char*); i++) {
|
||||
atoms[i] = XInternAtom(display, atomNames[i], False);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
scrPtr->attribsAtom = atoms[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user