From 7570b7b38eb96ace569bdbb41f73a5557e032832 Mon Sep 17 00:00:00 2001 From: Sebastian Woetzel Date: Wed, 24 Apr 2024 10:42:40 +0200 Subject: [PATCH 1/2] display: remember the last pointer position when border trigger is disabled 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. --- src/display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display.cpp b/src/display.cpp index 396748c..45a1741 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -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; } From 8a03d036666e19af09a580132fd9ca0625b7c385 Mon Sep 17 00:00:00 2001 From: Sebastian Woetzel Date: Wed, 24 Apr 2024 12:14:13 +0200 Subject: [PATCH 2/2] bump version to 4.2.3 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96a14f8..4794fc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set(CMAKE_PROJECT_DESCRIPTION set(lmss_VERSION_MAJOR 4) set(lmss_VERSION_MINOR 2) -set(lmss_VERSION_PATCH 2) +set(lmss_VERSION_PATCH 3) include(GNUInstallDirs)