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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user