Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0bcbda6
)
pass _SWM_WS env to spawnterm
author
Jason Woofenden
<jason@jasonwoof.com>
Mon, 17 Nov 2014 23:13:43 +0000
(18:13 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Mon, 17 Nov 2014 23:13:43 +0000
(18:13 -0500)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
8ade8d7
..
a6e4fc0
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-1635,6
+1635,17
@@
sigchld(int unused) {
void
spawn(const Arg *arg) {
void
spawn(const Arg *arg) {
+ int tag = 0, i;
+ if(arg->v == termcmd) {
+ for(i = 0; i < 32; ++i) {
+ if(selmon->tagset[selmon->seltags] & (1 << i)) {
+ tag = i;
+ break;
+ }
+ }
+ _SWM_WS[8] = swm_tags[tag][0];
+ _SWM_WS[9] = swm_tags[tag][1];
+ }
if(arg->v == dmenucmd)
dmenumon[0] = '0' + selmon->num;
if(fork() == 0) {
if(arg->v == dmenucmd)
dmenumon[0] = '0' + selmon->num;
if(fork() == 0) {