Skip to content

Commit

Permalink
Ensure that focus handling stays the same as before the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aginor committed Jul 17, 2016
1 parent 501eb60 commit 9550c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ bool context::remove_handler(sdl_handler* ptr)
// so look there first, otherwise do a complete search.
if(handlers.back() == ptr) {
if(focused_handler != handlers.end() && *focused_handler == ptr) {
focused_handler != handlers.begin() ? --focused_handler : ++focused_handler;
focused_handler = handlers.end();
}

handlers.pop_back();
Expand Down

0 comments on commit 9550c36

Please sign in to comment.