mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
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:
parent
d67345564e
commit
d64e3915a3
10 changed files with 14 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#ifndef LABWC_ACTION_H
|
||||
#define LABWC_ACTION_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <wayland-util.h>
|
||||
|
||||
struct view;
|
||||
|
|
|
|||
|
|
@ -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').
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
#define LABWC_TOUCH_CONFIG_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <wayland-util.h>
|
||||
|
||||
struct touch_config_entry {
|
||||
char *device_name;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue