xwm: support maximizing xwayland windows

Graphics / Wayland / Weston - Giulio Camuffo [gmail.com] - 2 February 2015 18:00 UTC

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.

6b4b241 xwm: support maximizing xwayland windows
desktop-shell/shell.c | 72 ++++++++++++++++++++++-------------
src/compositor.h | 1 +
xwayland/window-manager.c | 93 ++++++++++++++++++++++++++++++++++++++-------
xwayland/xwayland.h | 2 +
4 files changed, 129 insertions(+), 39 deletions(-)

Upstream: cgit.freedesktop.org


  • Share