weston/libweston-desktop
Alexandros Frantzis f6bd212924 xdg-shell: Allow fullscreen surfaces to not cover the whole screen
The wording of the xdg-shell protocol allows surfaces to not cover the
whole screen when they are made fullscreen. From the description of the
fullscreen state in xdg-shell:

  The window geometry specified in the configure event is a maximum; the
  client cannot resize beyond it. For a surface to cover the whole
  fullscreened area, the geometry dimensions must be obeyed by the
  client.

The last sentence is the condition for fullscreen coverage, not a
requirement.

This commit updates the code to not flag size mismatches for fullscreen
surfaces as a protocol error when the surface fits within the screen. In
such cases, the shell is responsible for centering surfaces
appropriately and also for obscuring other screen content as described
in the xdg_toplevel.set_fullscreen request description (and, indeed,
desktop-shell does all this).

For reference, contrast with the corresponding, stricter wording in the
obsolete xdg-shell-unstable-v6 protocol for the fullscreen state:

  The window geometry specified in the configure event must be obeyed by
  the client.

Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
2020-05-25 10:11:09 +00:00
..
client.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00
internal.h Rename compositor.h to libweston/libweston.h 2019-04-18 12:31:46 +03:00
libweston-desktop.c Unify the include style of shared/ headers 2019-10-04 16:04:48 +03:00
meson.build build: separate deps for int and ext libweston users 2019-10-24 13:29:33 +03:00
seat.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00
surface.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00
wl-shell.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00
xdg-shell-v6.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00
xdg-shell.c xdg-shell: Allow fullscreen surfaces to not cover the whole screen 2020-05-25 10:11:09 +00:00
xwayland.c Move libweston-desktop.h 2019-04-18 12:31:46 +03:00