diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-06-07 14:18:03 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-06-07 14:18:03 +0100 |
| commit | c6d3b40b1fb564ba54941707b4324a7b7cc3ed5a (patch) | |
| tree | a34ce2e8ae1c5f13932b85581bb36ad5e83f5a65 /src | |
| parent | ab02de0e72dcc454a1697fbbe9b56652889deb0b (diff) | |
make change_workspace use find_toplevel for changing focus
This is to fix a bug that sometimes happens with firefoxs use of
subwindows which causes it to not go in focus
Diffstat (limited to 'src')
| -rw-r--r-- | src/sxwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -250,7 +250,8 @@ void change_workspace(int ws) tile(); if (workspaces[current_ws]) { focused = workspaces[current_ws]; - XSetInputFocus(dpy, focused->win, RevertToPointerRoot, CurrentTime); + Window focused_win = find_toplevel(focused->win); + XSetInputFocus(dpy, focused_win, RevertToPointerRoot, CurrentTime); if (user_config.warp_cursor) { warp_cursor(focused); } |
