mouse click segfault if titles disabled in .xoatrc yet enabled in config.h
This commit is contained in:
4
event.c
4
event.c
@@ -168,9 +168,9 @@ void button_press(XEvent *ev)
|
|||||||
if (c && c->manage)
|
if (c && c->manage)
|
||||||
client_activate(c);
|
client_activate(c);
|
||||||
else
|
else
|
||||||
if (TITLE)
|
if (settings.title)
|
||||||
for_monitors(i, m) for_spots(j)
|
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);
|
spot_focus_top_window(j, i, None);
|
||||||
client_free(c);
|
client_free(c);
|
||||||
XAllowEvents(display, ReplayPointer, CurrentTime);
|
XAllowEvents(display, ReplayPointer, CurrentTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user