Skip to content

Commit

Permalink
display: remember the last pointer position when border trigger is di…
Browse files Browse the repository at this point in the history
…sabled

We still need to remember the last pointer position when the border
trigger is disabled (a mouse button is pressed) so we don't trigger a
border on the next move when the mouse button is released and we've
moved to a different screen.
  • Loading branch information
wose committed Apr 24, 2024
1 parent d449ebe commit 7570b7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ void display::handle_events(int) {

if (mask & (Button1Mask | Button2Mask | Button3Mask | Button4Mask | Button5Mask)) {
log.debug("mouse button pressed, skipping border detection");
last_pos = { root_x, root_y, root };
continue;
}

Expand Down

0 comments on commit 7570b7b

Please sign in to comment.