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
(from parent 1:
7c0393c
)
Be more careful with pointers in swapwin
author
Marco Peereboom
<marco@conformal.com>
Fri, 9 Oct 2009 18:26:41 +0000
(18:26 +0000)
committer
Marco Peereboom
<marco@conformal.com>
Fri, 9 Oct 2009 18:26:41 +0000
(18:26 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
ad295f7
..
16363f8
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-52,7
+52,7
@@
static const char *cvstag = "$scrotwm$";
-#define SWM_VERSION "0.9.11"
+#define SWM_VERSION "0.9.12"
#include <stdio.h>
#include <stdlib.h>
@@
-1553,6
+1553,8
@@
swapwin(struct swm_region *r, union arg *args)
else
return;
}
+ if (target == NULL || source == NULL)
+ return;
source->ws->focus_prev = target;
TAILQ_REMOVE(wl, target, entry);
TAILQ_INSERT_BEFORE(source, target, entry);