From 62136f2977d68a4377da9dbd8c552c8a7de02a24 Mon Sep 17 00:00:00 2001 From: Sean Pringle Date: Fri, 16 Jan 2015 14:47:34 +1000 Subject: [PATCH] mouse click segfault if titles disabled in .xoatrc yet enabled in config.h --- event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.c b/event.c index c1a08c5..b9fcdde 100644 --- a/event.c +++ b/event.c @@ -168,9 +168,9 @@ void button_press(XEvent *ev) if (c && c->manage) client_activate(c); else - if (TITLE) + if (settings.title) for_monitors(i, m) for_spots(j) - if (m->bars[j]->window == e->subwindow) + if (m->bars[i] && m->bars[j]->window == e->subwindow) spot_focus_top_window(j, i, None); client_free(c); XAllowEvents(display, ReplayPointer, CurrentTime);