fixed sendtopage sel semantic, now in such case the client is focused

This commit is contained in:
Anselm R. Garbe 2006-03-01 11:47:14 +01:00
parent 7166dd8836
commit 7e050df355

View File

@ -588,7 +588,9 @@ sendtopage_client(Client *c, char *arg) {
}
detach_client(c, False);
attach_client2page(p, c);
if((next = sel_client_of_page(page[sel])))
if(p == page[sel])
focus_client(c);
else if((next = sel_client_of_page(page[sel])))
focus_client(next);
}