X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=51f73cf00ec237da33e155704e11d304dc214744;hb=541344a40ab0857de33f1c8bab5889ff3a8bc801;hp=ba800275ec5a9495749559f00530783ca473085c;hpb=134554a0430cd9470f4a3d5d8325c1b7a569527a;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index ba80027..51f73cf 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -48,7 +48,7 @@ * DEALINGS IN THE SOFTWARE. */ -#define SWM_VERSION "0.5" +#define SWM_VERSION "0.6" #include #include @@ -1757,6 +1757,8 @@ manage_window(Window id) unsigned char ws_idx_str[SWM_PROPLEN], *prop = NULL; struct swm_region *r; long mask; + int ws_idx; + const char *errstr; if ((win = find_window(id)) != NULL) return (win); /* already being managed */ @@ -1773,9 +1775,6 @@ manage_window(Window id) r = root_to_region(win->wa.root); /* If the window was managed before, put it in the same workspace */ if (prop) { - int ws_idx; - const char *errstr; - DNPRINTF(SWM_D_PROP, "got property _SWM_WS=%s\n", prop); ws_idx = strtonum(prop, 0, 9, &errstr); if (errstr)