summaryrefslogtreecommitdiff
path: root/src/wlclock.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/wlclock.h
parent74a155389c20d4e546050c756b7fa94e445e1c1d (diff)
downloadwlclock-f53c7341152bbc4b642935953e317a2a29abc99c.tar.gz
wlclock-f53c7341152bbc4b642935953e317a2a29abc99c.tar.bz2
Change dimension model to ensure square center
Diffstat (limited to '')
-rw-r--r--src/wlclock.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/wlclock.h b/src/wlclock.h
index d051b7c..2799452 100644
--- a/src/wlclock.h
+++ b/src/wlclock.h
@@ -10,6 +10,17 @@
#include"colour.h"
+struct Wlclock_dimensions
+{
+ /* Width and height of entire surface (size + borders). */
+ int32_t w, h;
+
+ /* Dimensions of center area (where the actual clock is).
+ * Center is always square.
+ */
+ int32_t center_x, center_y, center_size;
+};
+
struct Wlclock
{
struct wl_display *display;
@@ -29,7 +40,7 @@ struct Wlclock
int ret;
enum zwlr_layer_shell_v1_layer layer;
- int32_t size;
+ struct Wlclock_dimensions dimensions;
char *namespace;
int32_t exclusive_zone;
int32_t border_top, border_right, border_bottom, border_left;