prevent crash if m_keylist is 0
again, i do not know yet, why this could happen.
This commit is contained in:
parent
24cfd54eae
commit
b8f9ac6d69
1 changed files with 3 additions and 0 deletions
|
@ -527,6 +527,9 @@ bool Keys::addBinding(const string &linebuffer) {
|
|||
bool Keys::doAction(int type, unsigned int mods, unsigned int key,
|
||||
int context, WinClient *current, Time time) {
|
||||
|
||||
if (!m_keylist)
|
||||
return false;
|
||||
|
||||
static Time last_button_time = 0;
|
||||
static unsigned int last_button = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue