summaryrefslogtreecommitdiff
path: root/src/surface.h
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-09-25 11:19:32 +0200
committerLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-09-25 11:19:32 +0200
commitf53c7341152bbc4b642935953e317a2a29abc99c (patch)
tree6e90223a7706da85ddfe85fbd440c6596a08a6cf /src/surface.h
parent74a155389c20d4e546050c756b7fa94e445e1c1d (diff)
downloadwlclock-f53c7341152bbc4b642935953e317a2a29abc99c.tar.gz
wlclock-f53c7341152bbc4b642935953e317a2a29abc99c.tar.bz2
Change dimension model to ensure square center
Diffstat (limited to 'src/surface.h')
-rw-r--r--src/surface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/surface.h b/src/surface.h
index 57dd239..0f6ce48 100644
--- a/src/surface.h
+++ b/src/surface.h
@@ -4,6 +4,7 @@
#include<wayland-server.h>
#include"buffer.h"
+#include"wlclock.h"
#include<stdint.h>
#include<stdbool.h>
@@ -17,7 +18,7 @@ struct Wlclock_surface
struct wl_surface *surface;
struct zwlr_layer_surface_v1 *layer_surface;
- int32_t size;
+ struct Wlclock_dimensions dimensions;
struct Wlclock_buffer buffers[2];
struct Wlclock_buffer *current_buffer;
bool configured;