Mercurial > aewl
comparison client.c @ 464:bd32d89ed9d5
focus() enforces visibility of a client if not NULL
author | arg@mmvi |
---|---|
date | Fri, 15 Sep 2006 10:49:05 +0200 |
parents | 9d23330a5268 |
children | 590575d080fe |
comparison
equal
deleted
inserted
replaced
463:e93b0ad5aeb5 | 464:bd32d89ed9d5 |
---|---|
82 | 82 |
83 void | 83 void |
84 focus(Client *c) { | 84 focus(Client *c) { |
85 Client *old; | 85 Client *old; |
86 | 86 |
87 if(!issel) | 87 if(!issel || (c && !isvisible(c))) |
88 return; | 88 return; |
89 if(!sel) | 89 if(!sel) |
90 sel = c; | 90 sel = c; |
91 else if(sel != c) { | 91 else if(sel != c) { |
92 if(maximized) | 92 if(maximized) |