From a8b57bb26f634971331be7441dd961f1e9a0177a Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sun, 6 Mar 2011 22:43:02 +0000 Subject: [PATCH] e-modules/comp-scale: selecting windows is only possible in slotted layout mode currently SVN revision: 57543 --- src/e_mod_scale.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/e_mod_scale.c b/src/e_mod_scale.c index af9e6f2..3d48c27 100644 --- a/src/e_mod_scale.c +++ b/src/e_mod_scale.c @@ -1373,7 +1373,11 @@ _scale_switch(const char *params) _scale_out(1); return; } - else if (!strcmp(params, "_next")) + + if ((!sel->next) || (!sel->prev)) + return; + + if (!strcmp(params, "_next")) { it = sel->next; } @@ -1785,7 +1789,6 @@ scale_run(E_Manager *man, const char *params, int _init_method) init_method = _init_method; - /* FIXME means: if keyboard use slotted layout */ if (init_method == GO_KEY) scale_layout = 1;