applied Jukkas patch

master
Anselm R. Garbe 2007-05-30 08:57:44 +02:00
parent 59e65d1709
commit 39ae286861
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ detach(Client *c) {
void void
focus(Client *c) { focus(Client *c) {
if( !c && selscreen || c && !isvisible(c)) if((!c && selscreen)|| (c && !isvisible(c)))
for(c = stack; c && !isvisible(c); c = c->snext); for(c = stack; c && !isvisible(c); c = c->snext);
if(sel && sel != c) { if(sel && sel != c) {
grabbuttons(sel, False); grabbuttons(sel, False);

View File

@ -244,7 +244,7 @@ enternotify(XEvent *e) {
if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
return; return;
if(c = getclient(ev->window)) if((c = getclient(ev->window)))
focus(c); focus(c);
else if(ev->window == root) { else if(ev->window == root) {
selscreen = True; selscreen = True;