Maus-Fokus Problem bei Websites behoben

This commit is contained in:
Stefan Mühlinghaus
2026-04-01 11:09:46 +02:00
parent 27f4b1dd38
commit 61590e0d5b
3 changed files with 7 additions and 7 deletions

View File

@@ -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);