aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-02 19:29:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-02 19:29:28 +0000
commit9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2 (patch)
tree151ae11ccffbd409d7b0bce3c161dcb9bfd0dffd /wayland.h
parentREADME: CSDs have been implemented (diff)
csd: initial implementation of minimize/maximize/close buttons
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/wayland.h b/wayland.h
index f94ad0e5..ed53591d 100644
--- a/wayland.h
+++ b/wayland.h
@@ -88,6 +88,9 @@ enum csd_surface {
CSD_SURF_RIGHT,
CSD_SURF_TOP,
CSD_SURF_BOTTOM,
+ CSD_SURF_MINIMIZE,
+ CSD_SURF_MAXIMIZE,
+ CSD_SURF_CLOSE,
CSD_SURF_COUNT,
};
@@ -103,8 +106,8 @@ struct wl_window {
enum {CSD_UNKNOWN, CSD_NO, CSD_YES } use_csd;
struct {
- struct wl_surface *surface[5];
- struct wl_subsurface *sub_surface[5];
+ struct wl_surface *surface[CSD_SURF_COUNT];
+ struct wl_subsurface *sub_surface[CSD_SURF_COUNT];
int move_timeout_fd;
uint32_t serial;
} csd;