tree-wide: use forward declarations for wlr types

This commit is contained in:
John Lindgren 2025-09-06 20:06:32 -04:00 committed by Hiroaki Yamamoto
parent b00873a988
commit d2ce31fcc9
40 changed files with 63 additions and 12 deletions

View file

@ -2,7 +2,8 @@
#ifndef LABWC_KEYBIND_H
#define LABWC_KEYBIND_H
#include <wlr/types/wlr_keyboard.h>
#include <stdbool.h>
#include <wayland-util.h>
#include <xkbcommon/xkbcommon.h>
#define MAX_KEYSYMS 32

View file

@ -2,13 +2,15 @@
#ifndef LABWC_CURSOR_H
#define LABWC_CURSOR_H
#include <wlr/types/wlr_cursor.h>
#include <wayland-server-protocol.h>
#include "common/edge.h"
#include "common/node-type.h"
struct view;
struct seat;
struct server;
struct wlr_input_device;
struct wlr_cursor;
struct wlr_surface;
struct wlr_scene_node;

View file

@ -3,10 +3,10 @@
#ifndef LABWC_IME_H
#define LABWC_IME_H
#include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_input_method_v2.h>
#include <wayland-server-core.h>
struct keyboard;
struct wlr_keyboard_key_event;
/*
* The relay structure manages the relationship between text-inputs and

View file

@ -3,7 +3,6 @@
#define LABWC_TABLET_PAD_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_tablet_v2.h>
struct seat;
struct wlr_device;

View file

@ -3,7 +3,6 @@
#define LABWC_TABLET_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_tablet_v2.h>
#include "config/types.h"
struct seat;

View file

@ -2,6 +2,7 @@
#ifndef LABWC_H
#define LABWC_H
#include "config.h"
#include <wlr/util/box.h>
#include <wlr/util/log.h>
#include "common/set.h"
#include "input/cursor.h"

View file

@ -1,8 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_LAYERS_H
#define LABWC_LAYERS_H
#include <wayland-server.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wayland-server-core.h>
#include <wlr/util/box.h>
struct server;
struct output;

View file

@ -1,9 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_NODE_DESCRIPTOR_H
#define LABWC_NODE_DESCRIPTOR_H
#include <wlr/types/wlr_scene.h>
#include <wayland-server-core.h>
#include "common/node-type.h"
struct wlr_scene_node;
struct node_descriptor {
enum lab_node_type type;
struct view *view;

View file

@ -2,7 +2,7 @@
#ifndef LABWC_SESSION_LOCK_H
#define LABWC_SESSION_LOCK_H
#include <wlr/types/wlr_session_lock_v1.h>
#include <wayland-server-core.h>
struct output;
struct server;

View file

@ -9,7 +9,7 @@
#define LABWC_THEME_H
#include <cairo.h>
#include <wlr/render/wlr_renderer.h>
#include <stdbool.h>
#include "common/node-type.h"
struct lab_img;