Avoid including generated headers publicly where possible

This is possible now that w-p ships enum headers. The remaining includes
are from wlr-protocols.
This commit is contained in:
Kirill Primak 2025-05-20 21:52:17 +03:00 committed by Simon Ser
parent 812675ba34
commit ad1b2f2819
14 changed files with 20 additions and 16 deletions

View file

@ -7,6 +7,7 @@
#include <wlr/types/wlr_output.h>
#include <wlr/util/addon.h>
#include "color-management-v1-protocol.h"
#include "render/color.h"
#include "util/mem.h"

View file

@ -3,6 +3,8 @@
#include <wlr/types/wlr_content_type_v1.h>
#include <wlr/types/wlr_compositor.h>
#include "content-type-v1-protocol.h"
#define CONTENT_TYPE_VERSION 1
struct wlr_content_type_v1_surface {

View file

@ -5,6 +5,8 @@
#include <wlr/types/wlr_cursor_shape_v1.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/types/wlr_tablet_tool.h>
#include "cursor-shape-v1-protocol.h"
#include "types/wlr_tablet_v2.h"
#define CURSOR_SHAPE_MANAGER_V1_VERSION 2

View file

@ -6,6 +6,7 @@
#include <wlr/types/wlr_ext_image_copy_capture_v1.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/render/wlr_renderer.h>
#include "ext-image-copy-capture-v1-protocol.h"
#include "render/pixel_format.h"
#define IMAGE_COPY_CAPTURE_MANAGER_V1_VERSION 1

View file

@ -9,6 +9,8 @@
#include <wlr/util/box.h>
#include <wlr/util/log.h>
#include "pointer-constraints-unstable-v1-protocol.h"
static const struct zwp_locked_pointer_v1_interface locked_pointer_impl;
static const struct zwp_confined_pointer_v1_interface confined_pointer_impl;
static const struct zwp_pointer_constraints_v1_interface pointer_constraints_impl;