diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-02 19:29:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-02 19:29:28 +0000 |
| commit | 9699c9b8bfcbd7f9ebef5ee4ffe370cb03b1c8a2 (patch) | |
| tree | 151ae11ccffbd409d7b0bce3c161dcb9bfd0dffd /wayland.h | |
| parent | README: CSDs have been implemented (diff) | |
csd: initial implementation of minimize/maximize/close buttons
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |
