From 75e837c31abe2fa06167b6f1f1a253ab397faf81 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Tue, 28 Mar 2023 19:42:19 -0400 Subject: Synchronize highlight position between outputs This change has the additional benefit of ensuring that the position of the highlight only changes in reaction to a letter key or backspace being pressed, and not when the compositor sends a new configure event or the output needs to be redrawn for some other reason. --- include/swaylock.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/swaylock.h') diff --git a/include/swaylock.h b/include/swaylock.h index bb71c8c..d855627 100644 --- a/include/swaylock.h +++ b/include/swaylock.h @@ -87,6 +87,7 @@ struct swaylock_state { cairo_surface_t *test_surface; cairo_t *test_cairo; // used to estimate font/text sizes enum auth_state auth_state; + uint32_t highlight_start; // position of highlight; 2048 = 1 full turn int failed_attempts; bool run_display, locked; struct ext_session_lock_manager_v1 *ext_session_lock_manager_v1; -- cgit v1.2.3