pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e65d1
)
applied Jukkas patch
author
Anselm R. Garbe
<arg@suckless.org>
Wed, 30 May 2007 06:57:44 +0000
(08:57 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Wed, 30 May 2007 06:57:44 +0000
(08:57 +0200)
client.c
patch
|
blob
|
history
event.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index
c4b0941
..
2872e1e
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-131,7
+131,7
@@
detach(Client *c) {
void
focus(Client *c) {
- if(
!c && selscreen || c && !isvisible(c
))
+ if(
(!c && selscreen)|| (c && !isvisible(c)
))
for(c = stack; c && !isvisible(c); c = c->snext);
if(sel && sel != c) {
grabbuttons(sel, False);
diff --git
a/event.c
b/event.c
index
6b15950
..
8eaff1a
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-244,7
+244,7
@@
enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return;
- if(
c = getclient(ev->window
))
+ if(
(c = getclient(ev->window)
))
focus(c);
else if(ev->window == root) {
selscreen = True;