From fe3a432845820686d5542d6c2c9e7b38b5cbeb38 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 17 Feb 2019 10:38:48 +0530 Subject: [PATCH] Documentation for window frames on Wayland --- glfw/glfw3.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/glfw/glfw3.h b/glfw/glfw3.h index 34c96ce88..081e733ab 100644 --- a/glfw/glfw3.h +++ b/glfw/glfw3.h @@ -2452,11 +2452,13 @@ GLFWAPI void glfwWindowHintString(int hint, const char* value); * GLFW_X11_CLASS_NAME and @ref GLFW_X11_INSTANCE_NAME window hints to override * this. * - * @remark @wayland The window frame is currently very simple, only allowing - * window resize or move. A compositor can still emit close, maximize or - * fullscreen events, using for example a keybind mechanism. Additionally, - * the wp_viewporter protocol is required for this feature, otherwise the - * window will not be decorated. + * @remark @wayland Compositors should implement the xdg-decoration protocol + * for GLFW to decorate the window properly. If this protocol isn't + * supported, or if the compositor prefers client-side decorations, a very + * simple fallback frame will be drawn using the wp_viewporter protocol. A + * compositor can still emit close, maximize or fullscreen events, using for + * instance a keybind mechanism. If neither of these protocols is supported, + * the window won't be decorated. * * @remark @wayland A full screen window will not attempt to change the mode, * no matter what the requested size or refresh rate.