xwayland: Move Xwayland windows to its own sources

Graphics / X.Org / X.Org Server - Olivier Fourdan [redhat.com] - 20 December 2019 15:19 UTC

Over time, Xwayland main source file `xwayland.c` has grown in size which makes it look cluttered and harder to read.

Move the code dealing with Xwayland window to its own source and header files.

89e32d00f xwayland: Move Xwayland windows to its own sources
hw/xwayland/Makefile.am | 2 +
hw/xwayland/meson.build | 2 +
hw/xwayland/xwayland-glamor.c | 1 +
hw/xwayland/xwayland-input.c | 14 +-
hw/xwayland/xwayland-output.c | 10 +-
hw/xwayland/xwayland-present.c | 10 +-
hw/xwayland/xwayland-window-buffers.c | 5 +
hw/xwayland/xwayland-window.c | 825 ++++++++++++++++++++++++++++++++++
hw/xwayland/xwayland-window.h | 81 ++++
hw/xwayland/xwayland.c | 778 +-------------------------------
hw/xwayland/xwayland.h | 26 --
11 files changed, 946 insertions(+), 808 deletions(-)

Upstream: cgit.freedesktop.org


  • Share