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

added code to store lowered state of menus

compat code for XInternAtoms
This commit is contained in:
kojima
2000-04-01 02:16:14 +00:00
parent e7f7030e1b
commit 32160ff66f
3 changed files with 91 additions and 38 deletions

View File

@@ -691,8 +691,18 @@ StartUp(Bool defaultScreenOnly)
/* _XA_VERSION = XInternAtom(dpy, "VERSION", False);*/
#ifdef HAVE_XINTERNATOMS
XInternAtoms(dpy, atomNames, sizeof(atomNames)/sizeof(char*),
False, atom);
#else
{
int i;
for (i = 0; i < sizeof(atomNames)/sizeof(char*); i++) {
atom[i] = XInternAtom(dpy, atomNames[i], False);
}
}
#endif
_XA_WM_STATE = atom[0];
_XA_WM_CHANGE_STATE = atom[1];