-/* $scrotwm$ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Ryan McBride <mcbride@countersiege.com>
{
Atom atom = 0;
char prop[SWM_PROPLEN];
-
- static XIA *xia = NULL;
- static XCP *xcp = NULL;
+ static XIA *xia = NULL;
+ static XCP *xcp = NULL;
/* find the real Xlib and the real X function */
if (!lib_xlib)
/* Try to update the window's workspace property */
atom = (*xia)(dpy, name, False);
- if (atom)
+ if (atom)
if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN)
(*xcp)(dpy, id, atom, XA_STRING,
- 8, PropModeReplace, prop, SWM_PROPLEN);
+ 8, PropModeReplace, (unsigned char *)prop,
+ strlen((char *)prop));
}
typedef Window(CWF) (Display * _display, Window _parent, int _x,