split the rest of the Wayland backend

WaylandWindow.cpp kept the window class with all methods defined in
place, the decorations, the free event listeners and the initialization
in one file. Now:

- WaylandWindow.hpp: the class declaration;
- WaylandWindow.cpp: surface, EGL, resize and frame pacing;
- WaylandBar.cpp: the window decorations (bar, font, buttons, dragging,
  edge resizing);
- WaylandListeners.cpp/.hpp: the free Wayland event handlers;
- WaylandInit.cpp: wayland_window_initialize.

No functional change.
This commit is contained in:
alexei-zebra 2026-10-09 00:51:44 +03:00
parent cf92ebba76
commit b934e033b3
No known key found for this signature in database
GPG key ID: D19D450AC3D9A80E
9 changed files with 2029 additions and 1954 deletions

View file

@ -15,9 +15,30 @@
#include "xdg-decoration-unstable-v1-client-protocol.h"
#include "xdg-shell-client-protocol.h"
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <wayland-egl.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstring>
#include <memory>
#include <optional>
#include <poll.h>
#include <stack>
#include <string>
#include <thread>
#include <tuple>
#include <vector>
const wl_registry_listener& registry_listener();
const wl_data_device_listener& data_device_listener();
const xdg_surface_listener& surface_listener();
const xdg_toplevel_listener& toplevel_listener();
GLuint compile_program(const char* vertexSource, const char* fragmentSource);
extern debug::Logger waylandLogger;
struct WaylandState {