From 5a25be4e2b40a2bb8e59a7baeffac1b6ed3d3432 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Sat, 4 Nov 2023 02:28:04 +0900 Subject: [PATCH] fix mapping issues in the switch_window --- CMakeLists.txt | 2 +- src/bind/window/switch_win.cpp | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01d54f51..84e16baf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.6.0) -project(win-vind VERSION 5.5.1) +project(win-vind VERSION 5.5.2) set(INTERNAL_VERSION ${PROJECT_VERSION}.0) if(NOT CMAKE_BUILD_TYPE) diff --git a/src/bind/window/switch_win.cpp b/src/bind/window/switch_win.cpp index 67b30d9b..de395f52 100644 --- a/src/bind/window/switch_win.cpp +++ b/src/bind/window/switch_win.cpp @@ -85,16 +85,14 @@ namespace vind continue ; } - // Map the inputs except for h and l. - if(!ihub.enqueue_mapped(input, count, mode)) { - continue ; - } - if(!ihub.fetch_input(input, count, mode, false)) { + if(input->empty()) { + input->execute(count) ; + break_flag = true ; // executed some commands. continue ; } - input->execute(count) ; - break_flag = true ; // executed some commands. + // Map the inputs except for h and l. + ihub.enqueue_mapped(input, count, mode) ; } while(!ihub.is_empty_queue()) ; if(break_flag) {