Skip to content

Commit

Permalink
fix mapping issues in the switch_window
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Nov 3, 2023
1 parent 6f93a4a commit 5a25be4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
12 changes: 5 additions & 7 deletions src/bind/window/switch_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5a25be4

Please sign in to comment.