aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-05-08 17:04:44 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-05-08 17:04:44 (GMT)
commitb8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb (patch)
tree48addf6092bd32e26e81d218f7f695c2bfd805a4
parent24cfd54eae6f34e3596ca154be72f922d66e6c77 (diff)
downloadfluxbox_paul-b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb.zip
fluxbox_paul-b8f9ac6d69aa38afeca4d07d0bd8daa5333c02cb.tar.bz2
prevent crash if m_keylist is 0
again, i do not know yet, why this could happen.
-rw-r--r--src/Keys.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index d528d00..f03dc01 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -527,6 +527,9 @@ bool Keys::addBinding(const string &linebuffer) {
527bool Keys::doAction(int type, unsigned int mods, unsigned int key, 527bool Keys::doAction(int type, unsigned int mods, unsigned int key,
528 int context, WinClient *current, Time time) { 528 int context, WinClient *current, Time time) {
529 529
530 if (!m_keylist)
531 return false;
532
530 static Time last_button_time = 0; 533 static Time last_button_time = 0;
531 static unsigned int last_button = 0; 534 static unsigned int last_button = 0;
532 535