summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-03-28 19:42:19 -0400
committerKenny Levinsen <kl@kl.wtf>2023-04-02 02:34:19 +0200
commit75e837c31abe2fa06167b6f1f1a253ab397faf81 (patch)
treebdf655e80382c2555326fe3e3adc446b1e9902cc /include
parent1d3e62c67f07a180fca02a6df1cf9648f2b50349 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/swaylock.h1
1 files changed, 1 insertions, 0 deletions
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;