Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c41144
)
Move some more declarations to where they belong.
author
Marco Peereboom
<marco@conformal.com>
Wed, 28 Jan 2009 04:45:45 +0000
(
04:45
+0000)
committer
Marco Peereboom
<marco@conformal.com>
Wed, 28 Jan 2009 04:45:45 +0000
(
04:45
+0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
e84dc13
..
51f73cf
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-1757,6
+1757,8
@@
manage_window(Window id)
unsigned char ws_idx_str[SWM_PROPLEN], *prop = NULL;
struct swm_region *r;
long mask;
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 */
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) {
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)
DNPRINTF(SWM_D_PROP, "got property _SWM_WS=%s\n", prop);
ws_idx = strtonum(prop, 0, 9, &errstr);
if (errstr)