diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-03 14:13:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-03 14:13:27 -0500 |
commit | 3f70043d00135b17b6feb16e78484b1148ba11dd (patch) | |
tree | 7c5bd67d747a62d84939d96f018e1716d3156dfd /include/wlr | |
parent | aa7efa1564f7e92318da9212c37bf3096361453c (diff) | |
parent | 344ca222db6b1811f983cabb80c3ba70e04fd31e (diff) |
Merge pull request #458 from acrisci/refactor/wlr-decoration-modes
wrap server decoration modes
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_server_decoration.h | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_server_decoration.h b/include/wlr/types/wlr_server_decoration.h index b4cac5b7..474a9386 100644 --- a/include/wlr/types/wlr_server_decoration.h +++ b/include/wlr/types/wlr_server_decoration.h @@ -3,12 +3,35 @@ #include <wayland-server.h> +/** + * Possible values to use in request_mode and the event mode. Same as + * org_kde_kwin_server_decoration_manager_mode. + */ +enum wlr_server_decoration_manager_mode { + /** + * Undecorated: The surface is not decorated at all, neither server nor + * client-side. An example is a popup surface which should not be + * decorated. + */ + WLR_SERVER_DECORATION_MANAGER_MODE_NONE = 0, + /** + * Client-side decoration: The decoration is part of the surface and the + * client. + */ + WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT = 1, + /** + * Server-side decoration: The server embeds the surface into a decoration + * frame. + */ + WLR_SERVER_DECORATION_MANAGER_MODE_SERVER = 2, +}; + struct wlr_server_decoration_manager { struct wl_global *wl_global; struct wl_list wl_resources; struct wl_list decorations; // wlr_server_decoration::link - uint32_t default_mode; // enum org_kde_kwin_server_decoration_manager_mode + uint32_t default_mode; // enum wlr_server_decoration_manager_mode struct { struct wl_signal new_decoration; @@ -22,7 +45,7 @@ struct wlr_server_decoration { struct wlr_surface *surface; struct wl_list link; - uint32_t mode; // enum org_kde_kwin_server_decoration_manager_mode + uint32_t mode; // enum wlr_server_decoration_manager_mode struct { struct wl_signal destroy; |