summaryrefslogtreecommitdiff
path: root/include/swaylock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swaylock.h')
-rw-r--r--include/swaylock.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/swaylock.h b/include/swaylock.h
index 9de8ab6..bb71c8c 100644
--- a/include/swaylock.h
+++ b/include/swaylock.h
@@ -98,11 +98,10 @@ struct swaylock_surface {
struct swaylock_state *state;
struct wl_output *output;
uint32_t output_global_name;
- struct wl_surface *surface;
- struct wl_surface *child; // surface made into subsurface
+ struct wl_surface *surface; // surface for background
+ struct wl_surface *child; // indicator surface made into subsurface
struct wl_subsurface *subsurface;
struct ext_session_lock_surface_v1 *ext_session_lock_surface_v1;
- struct pool_buffer buffers[2];
struct pool_buffer indicator_buffers[2];
bool frame_pending, dirty;
uint32_t width, height;
@@ -110,6 +109,8 @@ struct swaylock_surface {
enum wl_output_subpixel subpixel;
char *output_name;
struct wl_list link;
+ // Dimensions of last wl_buffer committed to background surface
+ int last_buffer_width, last_buffer_height;
};
// There is exactly one swaylock_image for each -i argument