- commit
- dc7a5438e4dcbf2b9fc2335a97bcaf13bdbd753a
- parent
- 171769e2dd94fa81b72b12b68a1f51768d60a7d4
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-13 08:18
inline unfocus
Diffstat
| M | xiwm.c | 15 | ++++----------- |
1 files changed, 4 insertions, 11 deletions
diff --git a/xiwm.c b/xiwm.c
@@ -474,21 +474,14 @@ detach(Client *c) 474 474 } 475 475 476 476 void477 -1 unfocus(Client *c)478 -1 {479 -1 if (!c)480 -1 return;481 -1 grabbuttons(c, False);482 -1 XSetWindowBorder(dpy, c->win, col_norm);483 -1 }484 -1485 -1 void486 477 focus(Client *c) 487 478 { 488 479 if (!c || !ISVISIBLE(c)) 489 480 for (c = clients; c && !ISVISIBLE(c); c = c->next);490 -1 if (sel && sel != c)491 -1 unfocus(sel);-1 481 if (sel && sel != c) { -1 482 grabbuttons(sel, False); -1 483 XSetWindowBorder(dpy, sel->win, col_norm); -1 484 } 492 485 if (c) { 493 486 XSetWindowBorder(dpy, c->win, col_high); 494 487 grabbuttons(c, True);