X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=9da5d15af9e081820d58627b23894752f1647b51;hb=f4da59ebb218d4ce2f7584c8156978461330c865;hp=072e71f3061ddf5dfecd5500a479c3d3a7713867;hpb=d857737a4a3e5189365469686c876354c4cecf5f;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index 072e71f..9da5d15 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -3958,6 +3958,7 @@ move(struct ws_win *win, union arg *args) win->manual = 1; if (win->floating == 0 && !win->transient) { + store_float_geom(win,r); ewmh_update_win_state(win, ewmh[_NET_WM_STATE_ABOVE].atom, _NET_WM_STATE_ADD); } @@ -5509,12 +5510,12 @@ conf_load(char *filename, int keymapping) goto out; } - if(asprintf(&optsub, "%.*s", wordlen, cp) == + if (asprintf(&optsub, "%.*s", wordlen, cp) == -1) { warnx("%s: line %zd: unable to allocate" "memory for selector", filename, lineno); - return (1); + goto out; } } cp += wordlen;