extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir)
{
if ( 0 == wmeta->active /* No shifting with < 2 */
- || wmeta->_chain_start == wmeta->_chain_end /* windows visible or */
- || (dir != 'f' && dir != 'b')) /* wrong direction char. */
+ || wmeta->_chain_start == wmeta->_chain_end) /* windows visible. */
{
return 0;
}
-/* Move active window forwards ("dir" == "f") or backwards ("dir" == "b").
+/* Move active window forwards ("dir" == "f") or backwards (any other "dir").
* Wrap around in the window chain if start / end of it is met. Does nothing if
* no window is active.
*/