include: reduce unnecessary #includes

This commit is contained in:
John Lindgren 2025-09-02 23:02:27 -04:00 committed by Hiroaki Yamamoto
parent e9f17dc4a2
commit 7c185c1a85
15 changed files with 17 additions and 12 deletions

View file

@ -4,7 +4,6 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <stdio.h>
/**
* nodename - give xml node an ascii name

View file

@ -8,7 +8,6 @@
#include <libxml/tree.h>
#include "common/border.h"
#include "common/buf.h"
#include "common/font.h"
#include "common/node-type.h"
#include "config/types.h"
@ -42,6 +41,8 @@ enum tiling_events_mode {
(LAB_TILING_EVENTS_REGION | LAB_TILING_EVENTS_EDGE),
};
struct buf;
struct button_map_entry {
uint32_t from;
uint32_t to;

View file

@ -4,7 +4,6 @@
#include <cairo.h>
#include <stdbool.h>
#include <stdint.h>
#include <wayland-util.h>
enum lab_img_type {

View file

@ -5,7 +5,6 @@
#include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_input_method_v2.h>
#include "labwc.h"
struct keyboard;

View file

@ -4,7 +4,7 @@
#include <wayland-server-core.h>
#include <wlr/types/wlr_tablet_v2.h>
#include "config/tablet-tool.h"
#include "config/types.h"
struct seat;
struct wlr_device;

View file

@ -4,7 +4,8 @@
#include <stdbool.h>
#include <wlr/util/box.h>
#include "view.h"
struct view;
bool placement_find_best(struct view *view, struct wlr_box *geometry);

View file

@ -1,7 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef LABWC_RESISTANCE_H
#define LABWC_RESISTANCE_H
#include "labwc.h"
#include <stdbool.h>
#include <wlr/util/box.h>
struct view;
/**
* resistance_unsnap_apply() - Apply resistance when dragging a

View file

@ -2,8 +2,6 @@
#ifndef LABWC_SCALED_IMG_BUFFER_H
#define LABWC_SCALED_IMG_BUFFER_H
#include <stdbool.h>
struct wlr_scene_tree;
struct wlr_scene_node;
struct wlr_scene_buffer;

View file

@ -2,9 +2,9 @@
#ifndef LABWC_SNAP_H
#define LABWC_SNAP_H
#include "common/border.h"
#include "view.h"
#include "common/edge.h"
struct view;
struct wlr_box;
void snap_move_to_edge(struct view *view,

View file

@ -2,7 +2,6 @@
#ifndef LABWC_SSD_H
#define LABWC_SSD_H
#include "common/border.h"
#include "common/node-type.h"
#include "config/types.h"

View file

@ -9,6 +9,7 @@
#include <wlr/types/wlr_scene.h>
#include <wlr/util/log.h>
#include "action-prompt-codes.h"
#include "common/buf.h"
#include "common/macros.h"
#include "common/list.h"
#include "common/mem.h"

View file

@ -16,6 +16,7 @@
#include <wlr/util/box.h>
#include <wlr/util/log.h>
#include "action.h"
#include "common/buf.h"
#include "common/dir.h"
#include "common/list.h"
#include "common/macros.h"

View file

@ -8,6 +8,7 @@
#include <wlr/types/wlr_xdg_shell.h>
#include "common/mem.h"
#include "input/keyboard.h"
#include "labwc.h"
#include "node.h"
#include "output.h"
#include "view.h"

View file

@ -2,6 +2,7 @@
#include <assert.h>
#include <ctype.h>
#include <wlr/util/log.h>
#include "common/buf.h"
#include "common/mem.h"
#include "config/rcxml.h"
#include "view.h"

View file

@ -2,6 +2,7 @@
#include "resize-outlines.h"
#include <wlr/types/wlr_scene.h>
#include "common/border.h"
#include "common/lab-scene-rect.h"
#include "labwc.h"
#include "resize-indicator.h"