diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-03-18 00:48:57 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-03-18 00:48:57 +0000 |
commit | 7693e1ebb3ed0babd9af023f2808f21b723ebc01 (patch) | |
tree | 8ff49d367bff961aeb4831981548f14dc5181151 | |
parent | 5dc7c9707602b12fcdab864cbad4a9fcdcaf770f (diff) |
client_{,r}cycle() doens't need a client. so get rid of KBFUNC_NEEDSCLIENT.
this prevents the issue where you close or hide a window, and end up
with no client selected (you're on the root window). When that happened
alt-tab failed. This, however, exposed to me a few more issues in the
alt-tabbing code:
-the code to detect how many lines we need looks bogus (you always get
three)
-alt-tabbing when everything is hidden always reawakes the most recent
window.
Fixes for these will be forthcoming.
ok simon@.
-rw-r--r-- | app/cwm/conf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 6fb9f3b20..d1d5cd046 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.20 2008/01/16 11:39:20 oga Exp $ + * $Id: conf.c,v 1.21 2008/03/18 00:48:56 oga Exp $ */ #include "headers.h" @@ -345,8 +345,8 @@ struct { { "search", kbfunc_client_search, 0, 0 }, { "menusearch", kbfunc_menu_search, 0, 0 }, { "hide", kbfunc_client_hide, KBFLAG_NEEDCLIENT, 0 }, - { "cycle", kbfunc_client_cycle, KBFLAG_NEEDCLIENT, 0 }, - { "rcycle", kbfunc_client_rcycle, KBFLAG_NEEDCLIENT, 0 }, + { "cycle", kbfunc_client_cycle, 0, 0 }, + { "rcycle", kbfunc_client_rcycle, 0, 0 }, { "label", kbfunc_client_label, KBFLAG_NEEDCLIENT, 0 }, { "delete", kbfunc_client_delete, KBFLAG_NEEDCLIENT, 0 }, { "ptrmoveup", kbfunc_ptrmove, 0, (void *)CWM_UP }, |