summaryrefslogtreecommitdiff
path: root/xwayland/xwayland.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giuliocamuffo@gmail.com>2015-01-29 19:06:49 +0200
committerBryce Harrington <bryce@osg.samsung.com>2015-02-02 16:00:10 -0800
commit6b4b24155fb3f6fbfc98f38ba3eb5f2f3115371f (patch)
tree4e475faec17b59dc45572c6d9522deec3c3d6e8a /xwayland/xwayland.h
parent8aeeac827f37fb070f08fecbe18743820bc70437 (diff)
downloadweston-6b4b24155fb3f6fbfc98f38ba3eb5f2f3115371f.tar.gz
xwm: support maximizing xwayland windows
This patch adds the maximize button to the window frame for the windows which set the MWM_DECOR_MAXIMIZE hint, and it wires it with the shell via a new method in weston_shell_interface. Additionally, it also listens for the wm hints coming from the client, but it doesn't support maximizing a window only vertically or horizontally. The window will be maximized only when both directions are maximized. Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'xwayland/xwayland.h')
-rw-r--r--xwayland/xwayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xwayland/xwayland.h b/xwayland/xwayland.h
index b42110bd..54cbf6d6 100644
--- a/xwayland/xwayland.h
+++ b/xwayland/xwayland.h
@@ -102,6 +102,8 @@ struct weston_wm {
xcb_atom_t net_wm_pid;
xcb_atom_t net_wm_icon;
xcb_atom_t net_wm_state;
+ xcb_atom_t net_wm_state_maximized_vert;
+ xcb_atom_t net_wm_state_maximized_horz;
xcb_atom_t net_wm_state_fullscreen;
xcb_atom_t net_wm_user_time;
xcb_atom_t net_wm_icon_name;