Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add clarification to man page that default workspace_limit is 10.
[spectrwm.git]
/
lib
/
swm_hack.c
diff --git
a/lib/swm_hack.c
b/lib/swm_hack.c
index
34550d8
..
e6df1b0
100644
(file)
--- a/
lib/swm_hack.c
+++ b/
lib/swm_hack.c
@@
-1,4
+1,3
@@
-/* $scrotwm$ */
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Ryan McBride <mcbride@countersiege.com>
/*
* Copyright (c) 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2009 Ryan McBride <mcbride@countersiege.com>
@@
-91,9
+90,8
@@
set_property(Display *dpy, Window id, char *name, char *val)
{
Atom atom = 0;
char prop[SWM_PROPLEN];
{
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)
/* find the real Xlib and the real X function */
if (!lib_xlib)
@@
-105,10
+103,11
@@
set_property(Display *dpy, Window id, char *name, char *val)
/* Try to update the window's workspace property */
atom = (*xia)(dpy, name, False);
/* 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,
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,
}
typedef Window(CWF) (Display * _display, Window _parent, int _x,