From 3a9dcd54a74b10d12884cfcf65e85124dce3202f Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 5 Jun 2023 21:48:47 +0100 Subject: [PATCH] Move border-struct to common/border.h for sharing --- include/common/border.h | 12 ++++++++++++ include/ssd.h | 8 +------- 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 include/common/border.h diff --git a/include/common/border.h b/include/common/border.h new file mode 100644 index 00000000..ef9861d4 --- /dev/null +++ b/include/common/border.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +#ifndef LABWC_BORDER_H +#define LABWC_BORDER_H + +struct border { + int top; + int right; + int bottom; + int left; +}; + +#endif /* LABWC_BORDER_H */ diff --git a/include/ssd.h b/include/ssd.h index 87528f97..4ccc0ef3 100644 --- a/include/ssd.h +++ b/include/ssd.h @@ -3,6 +3,7 @@ #define LABWC_SSD_H #include +#include "common/border.h" #define SSD_BUTTON_COUNT 4 #define SSD_BUTTON_WIDTH 26 @@ -47,13 +48,6 @@ struct view; struct wlr_scene; struct wlr_scene_node; -struct border { - int top; - int right; - int bottom; - int left; -}; - /* * Public SSD API * -- 2.52.0