summaryrefslogtreecommitdiff
path: root/include/swaylock.h
diff options
context:
space:
mode:
authorMartin Dørum <martid0311@gmail.com>2020-10-15 14:26:02 +0200
committerSimon Ser <contact@emersion.fr>2023-12-14 11:31:13 +0100
commitba921312c538e2857ef1bc9e8a6f3bbb5799cff6 (patch)
tree22d3584a949beedcdb01d0848f1dc3bfd255be7a /include/swaylock.h
parentf2298bdbf788678a9e08fd17a3e37600767f5a9b (diff)
Fix output-specific images when output reappears
When setting an image with `--image <output>:<path>`, the image used to fail to apply if the relevant output appears some time after swaylock executes. Co-authored-by: Alexander Bakker <ab@alexbakker.me>
Diffstat (limited to 'include/swaylock.h')
-rw-r--r--include/swaylock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index 0eea1b3..c373fff 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -112,6 +112,7 @@ struct swaylock_surface {
struct wl_subsurface *subsurface;
struct ext_session_lock_surface_v1 *ext_session_lock_surface_v1;
struct pool_buffer indicator_buffers[2];
+ bool created;
bool frame_pending, dirty;
uint32_t width, height;
int32_t scale;