X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=lib%2Fswm_hack.c;h=c992689057b20d38ff1edcecc203f704cf5fe369;hb=1931c8e6d7edc3ce4a7e48cab22ca7cb33396de6;hp=f90419eabbc7d0b10466a09c96eec6744868d313;hpb=8eb6cfee6344a0e61511f1eb2e36a91c30854e1e;p=spectrwm.git diff --git a/lib/swm_hack.c b/lib/swm_hack.c index f90419e..c992689 100644 --- a/lib/swm_hack.c +++ b/lib/swm_hack.c @@ -106,7 +106,8 @@ set_property(Display *dpy, Window id, char *name, char *val) if (atom) if (snprintf(prop, SWM_PROPLEN, "%s", val) < SWM_PROPLEN) (*xcp)(dpy, id, atom, XA_STRING, - 8, PropModeReplace, (unsigned char *)prop, SWM_PROPLEN); + 8, PropModeReplace, (unsigned char *)prop, + strlen((char *)prop)); } typedef Window(CWF) (Display * _display, Window _parent, int _x, @@ -233,7 +234,7 @@ void XtAppNextEvent(XtAppContext app_context, XEvent *event_return) { static ANEF *func = NULL; - static int kp_add = 0, kp_subtract = 0; + static KeyCode kp_add = 0, kp_subtract = 0; /* find the real Xlib and the real X function */ if (!lib_xtlib)