Fix some header includes detected by clangd

There were some missing headers like <stddef.h> for `NULL`, <wayland-util.h>
for `wl_link` and <stdbool.h> for `true`/`false`.

Also this commit fixes that `labwc.h` and `ime.h` included each other.
This commit is contained in:
Hiroaki Yamamoto 2024-04-22 04:58:57 +09:00 committed by GitHub
parent d67345564e
commit d64e3915a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 14 additions and 3 deletions

View file

@ -2,6 +2,7 @@
#ifndef LABWC_ACTION_H
#define LABWC_ACTION_H
#include <stdbool.h>
#include <wayland-util.h>
struct view;

View file

@ -2,6 +2,8 @@
#ifndef LABWC_BUTTON_COMMON_H
#define LABWC_BUTTON_COMMON_H
#include <stddef.h>
/**
* button_filename() - Get full filename for button.
* @name: The name of the button (for example 'iconify.xbm').

View file

@ -2,11 +2,11 @@
#ifndef LABWC_SCALED_SCENE_BUFFER_H
#define LABWC_SCALED_SCENE_BUFFER_H
#include <wayland-server-core.h>
#define LAB_SCALED_BUFFER_MAX_CACHE 2
struct wl_list;
struct wlr_buffer;
struct wl_listener;
struct wlr_scene_tree;
struct lab_data_buffer;
struct scaled_scene_buffer;

View file

@ -2,6 +2,8 @@
#ifndef LABWC_DEFAULT_BINDINGS_H
#define LABWC_DEFAULT_BINDINGS_H
#include <stddef.h>
static struct key_combos {
const char *binding, *action;
struct {

View file

@ -3,6 +3,7 @@
#define LABWC_TOUCH_CONFIG_H
#include <stdint.h>
#include <wayland-util.h>
struct touch_config_entry {
char *device_name;

View file

@ -46,7 +46,6 @@
#include "config/keybind.h"
#include "config/rcxml.h"
#include "input/cursor.h"
#include "input/ime.h"
#include "overlay.h"
#include "regions.h"
#include "session-lock.h"

View file

@ -2,6 +2,9 @@
#ifndef LABWC_WINDOW_RULES_H
#define LABWC_WINDOW_RULES_H
#include <stdbool.h>
#include <wayland-util.h>
enum window_rule_event {
LAB_WINDOW_RULE_EVENT_ON_FIRST_MAP = 0,
};

View file

@ -4,6 +4,7 @@
#include "common/graphic-helpers.h"
#include "common/scene-helpers.h"
#include "debug.h"
#include "input/ime.h"
#include "labwc.h"
#include "node.h"
#include "ssd.h"

View file

@ -7,6 +7,7 @@
#include <wlr/interfaces/wlr_keyboard.h>
#include "action.h"
#include "idle.h"
#include "input/ime.h"
#include "input/keyboard.h"
#include "input/key-state.h"
#include "labwc.h"

View file

@ -9,6 +9,7 @@
#include <wlr/types/wlr_touch.h>
#include <wlr/util/log.h>
#include "common/mem.h"
#include "input/ime.h"
#include "input/tablet.h"
#include "input/tablet_pad.h"
#include "input/input.h"