Avoid loop in keybinding check
commit29ccfbbf20f65eed2652049fb8c79a84fbbd303d
authorRodolfo García Peñas (kix) <kix@kix.es>
Fri, 4 Oct 2013 21:12:29 +0000 (4 23:12 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 4 Oct 2013 23:29:41 +0000 (5 01:29 +0200)
tree30b2c860da391f942fbdcb6bab7983f6ea6d58f2
parent1d09b9fdcd7def30f409a7f05fb81998f018745a
Avoid loop in keybinding check

This patch changes the keybinding check in cycling keyrelease.

Now, the variable binding contains the keypressed, so we can
check if the key pressed is the same than the keybinding. If
the keybinding is different (user press other key) then finish.

Without the loop, the code is faster.

Then, the keybinding variable is not used anymore, and can be removed.

Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
src/cycling.c