diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2015-01-29 19:06:49 +0200 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-02-02 16:00:10 -0800 |
commit | 6b4b24155fb3f6fbfc98f38ba3eb5f2f3115371f (patch) | |
tree | 4e475faec17b59dc45572c6d9522deec3c3d6e8a /xwayland/xwayland.h | |
parent | 8aeeac827f37fb070f08fecbe18743820bc70437 (diff) | |
download | weston-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.h | 2 |
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; |