Maus-Fokus Problem bei Websites behoben
This commit is contained in:
8
event.c
8
event.c
@@ -169,13 +169,13 @@ void button_press(XEvent *ev)
|
||||
int i, j; Monitor *m;
|
||||
XButtonEvent *e = &ev->xbutton;
|
||||
latest_action = e->time;
|
||||
Client *c = window_build_client(e->subwindow);
|
||||
if (c && c->manage)
|
||||
Client *c = window_build_client(e->window);
|
||||
if (c && c->manage && c->window != current)
|
||||
client_activate(c);
|
||||
else
|
||||
if (settings.title)
|
||||
if (settings.title && !c)
|
||||
for_monitors(i, m) for_spots(j)
|
||||
if (m->bars[i] && m->bars[j]->window == e->subwindow)
|
||||
if (m->bars[j] && m->bars[j]->window == e->window)
|
||||
spot_focus_top_window(j, i, None);
|
||||
client_free(c);
|
||||
XAllowEvents(display, ReplayPointer, latest_action);
|
||||
|
||||
Reference in New Issue
Block a user