aboutsummarylogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authoranselm@garbe.us2010-08-23 17:25:53 +0100
committeranselm@garbe.us2010-08-23 17:25:53 +0100
commit8617a6c152ffb601c9b1b073d0157147eca5e638 (patch)
tree3f18f6177a0d8e59e313dcb33dba700037310510 /dwm.c
parent47c458772771d4422d1976c921240a6312c54778 (diff)
downloadaur-8617a6c152ffb601c9b1b073d0157147eca5e638.tar.gz
applied Hiltjo Posthuma's line saver patch
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 438b9e716e99..4b43a18a6e7f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -790,7 +790,6 @@ drawtext(const char *text, unsigned long col[ColLast], Bool invert) {
void
enternotify(XEvent *e) {
- Client *c;
Monitor *m;
XCrossingEvent *ev = &e->xcrossing;
@@ -800,10 +799,7 @@ enternotify(XEvent *e) {
unfocus(selmon->sel, True);
selmon = m;
}
- if((c = wintoclient(ev->window)))
- focus(c);
- else
- focus(NULL);
+ focus(wintoclient(ev->window));
}
void