aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2014-02-27 00:52:57 +0000
committerokan2014-02-27 00:52:57 +0000
commitff9c3bdb5409a7e35bb6b17d9786ef5aa3b0ae1a (patch)
tree3833b0720f251743f43f3a5be55c37d7b11712bb
parent79e432c4a8f3f3c7e1bc374e464d1b881b277f88 (diff)
downloadcwm-ff9c3bdb5409a7e35bb6b17d9786ef5aa3b0ae1a.tar.gz
Alignment fix; found the hard way on sparc64 by landry@ (and thanks too
for fast access to a box!) ok deraadt@, matthieu@
-rw-r--r--xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 9884148..2a535e5 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.84 2014/02/07 21:59:56 okan Exp $
+ * $OpenBSD: xutil.c,v 1.85 2014/02/27 00:52:57 okan Exp $
*/
#include <sys/param.h>
@@ -291,7 +291,7 @@ xu_ewmh_net_desktop_names(struct screen_ctx *sc, char *data, int n)
void
xu_ewmh_net_wm_desktop(struct client_ctx *cc)
{
- int no = cc->group->shortcut;
+ long no = cc->group->shortcut;
XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP],
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1);