Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
selmon optimisation is needed
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
b1f77cc
..
ac534a8
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-815,10
+815,6
@@
void
focus(Client *c) {
if(!c || !ISVISIBLE(c))
for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
focus(Client *c) {
if(!c || !ISVISIBLE(c))
for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
- if(c && c == selmon->sel) {
- D fprintf(stderr, "focus, optimising focus away\n");
- return;
- }
if(selmon->sel)
unfocus(selmon->sel);
if(c) {
if(selmon->sel)
unfocus(selmon->sel);
if(c) {