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:
f8e5a1c
)
Fix crash on maprequest when WM_CLASS name and/or instance isn't set.
author
Reginald Kennedy
<rk@rejii.com>
Mon, 29 Apr 2013 18:44:23 +0000
(
02:44
+0800)
committer
Reginald Kennedy
<rk@rejii.com>
Mon, 29 Apr 2013 18:57:22 +0000
(
02:57
+0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
6945965
..
38883f6
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-8568,8
+8568,12
@@
maprequest(xcb_map_request_event_t *e)
if (w == win || !w->mapped)
continue;
- if (!strcmp(w->ch.class_name,
+ if (w->ch.class_name &&
+ win->ch.class_name &&
+ !strcmp(w->ch.class_name,
win->ch.class_name) &&
+ w->ch.instance_name &&
+ win->ch.instance_name &&
!strcmp(w->ch.instance_name,
win->ch.instance_name))
break;