prevent crash if m_keylist is 0

again, i do not know yet, why this could happen.
This commit is contained in:
Mathias Gumz 2010-05-08 19:04:44 +02:00
parent 24cfd54eae
commit b8f9ac6d69

View file

@ -527,6 +527,9 @@ bool Keys::addBinding(const string &linebuffer) {
bool Keys::doAction(int type, unsigned int mods, unsigned int key, bool Keys::doAction(int type, unsigned int mods, unsigned int key,
int context, WinClient *current, Time time) { int context, WinClient *current, Time time) {
if (!m_keylist)
return false;
static Time last_button_time = 0; static Time last_button_time = 0;
static unsigned int last_button = 0; static unsigned int last_button = 0;