sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 541e6e260c2df0346b421cacfaf4ce5d204c49ba
parent ca40663d4277ade2a7dfec0484db5b7881799ee4
Author: Simon Ser <contact@emersion.fr>
Date:   Thu, 15 Feb 2024 12:01:24 +0100

Drop unnecessary includes from sway/server.h

Diffstat:
Minclude/sway/server.h | 17-----------------
Msway/desktop/layer_shell.c | 3++-
Msway/desktop/output.c | 2++
Msway/input/cursor.c | 1+
Msway/lock.c | 1+
Msway/server.c | 8++++++++
Msway/tree/container.c | 1+
Msway/tree/view.c | 2++
Msway/xdg_activation_v1.c | 1+
9 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/include/sway/server.h b/include/sway/server.h @@ -2,23 +2,6 @@ #define _SWAY_SERVER_H #include <stdbool.h> #include <wayland-server-core.h> -#include <wlr/backend.h> -#include <wlr/render/allocator.h> -#include <wlr/render/wlr_renderer.h> -#include <wlr/types/wlr_compositor.h> -#include <wlr/types/wlr_data_device.h> -#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h> -#include <wlr/types/wlr_input_method_v2.h> -#include <wlr/types/wlr_foreign_toplevel_management_v1.h> -#include <wlr/types/wlr_layer_shell_v1.h> -#include <wlr/types/wlr_output_management_v1.h> -#include <wlr/types/wlr_output_power_management_v1.h> -#include <wlr/types/wlr_presentation_time.h> -#include <wlr/types/wlr_relative_pointer_v1.h> -#include <wlr/types/wlr_session_lock_v1.h> -#include <wlr/types/wlr_server_decoration.h> -#include <wlr/types/wlr_text_input_v3.h> -#include <wlr/types/wlr_xdg_shell.h> #include "config.h" #include "list.h" #include "sway/desktop/idle_inhibit_v1.h" diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c @@ -4,7 +4,9 @@ #include <wayland-server-core.h> #include <wlr/types/wlr_layer_shell_v1.h> #include <wlr/types/wlr_output.h> +#include <wlr/types/wlr_scene.h> #include <wlr/types/wlr_subcompositor.h> +#include <wlr/types/wlr_xdg_shell.h> #include "log.h" #include "sway/scene_descriptor.h" #include "sway/desktop/transaction.h" @@ -16,7 +18,6 @@ #include "sway/server.h" #include "sway/tree/arrange.h" #include "sway/tree/workspace.h" -#include <wlr/types/wlr_scene.h> struct wlr_layer_surface_v1 *toplevel_layer_surface_from_surface( struct wlr_surface *surface) { diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -12,6 +12,8 @@ #include <wlr/types/wlr_gamma_control_v1.h> #include <wlr/types/wlr_matrix.h> #include <wlr/types/wlr_output_layout.h> +#include <wlr/types/wlr_output_management_v1.h> +#include <wlr/types/wlr_output_power_management_v1.h> #include <wlr/types/wlr_output.h> #include <wlr/types/wlr_presentation_time.h> #include <wlr/types/wlr_compositor.h> diff --git a/sway/input/cursor.c b/sway/input/cursor.c @@ -9,6 +9,7 @@ #include <wlr/types/wlr_cursor.h> #include <wlr/types/wlr_cursor_shape_v1.h> #include <wlr/types/wlr_pointer.h> +#include <wlr/types/wlr_relative_pointer_v1.h> #include <wlr/types/wlr_touch.h> #include <wlr/types/wlr_tablet_v2.h> #include <wlr/types/wlr_tablet_pad.h> diff --git a/sway/lock.c b/sway/lock.c @@ -1,6 +1,7 @@ #define _POSIX_C_SOURCE 200809L #include <assert.h> #include <wlr/types/wlr_scene.h> +#include <wlr/types/wlr_session_lock_v1.h> #include "log.h" #include "sway/input/cursor.h" #include "sway/input/keyboard.h" diff --git a/sway/server.c b/sway/server.c @@ -8,24 +8,32 @@ #include <wlr/backend/headless.h> #include <wlr/backend/multi.h> #include <wlr/config.h> +#include <wlr/render/allocator.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_content_type_v1.h> #include <wlr/types/wlr_cursor_shape_v1.h> #include <wlr/types/wlr_data_control_v1.h> +#include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_drm.h> #include <wlr/types/wlr_export_dmabuf_v1.h> +#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h> +#include <wlr/types/wlr_foreign_toplevel_management_v1.h> #include <wlr/types/wlr_fractional_scale_v1.h> #include <wlr/types/wlr_gamma_control_v1.h> #include <wlr/types/wlr_idle_notify_v1.h> #include <wlr/types/wlr_layer_shell_v1.h> #include <wlr/types/wlr_linux_dmabuf_v1.h> +#include <wlr/types/wlr_output_management_v1.h> +#include <wlr/types/wlr_output_power_management_v1.h> #include <wlr/types/wlr_pointer_constraints_v1.h> +#include <wlr/types/wlr_presentation_time.h> #include <wlr/types/wlr_primary_selection_v1.h> #include <wlr/types/wlr_relative_pointer_v1.h> #include <wlr/types/wlr_screencopy_v1.h> #include <wlr/types/wlr_security_context_v1.h> #include <wlr/types/wlr_server_decoration.h> +#include <wlr/types/wlr_session_lock_v1.h> #include <wlr/types/wlr_single_pixel_buffer_v1.h> #include <wlr/types/wlr_subcompositor.h> #include <wlr/types/wlr_tablet_v2.h> diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -4,6 +4,7 @@ #include <stdint.h> #include <stdlib.h> #include <wayland-server-core.h> +#include <wlr/types/wlr_foreign_toplevel_management_v1.h> #include <wlr/types/wlr_linux_dmabuf_v1.h> #include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_subcompositor.h> diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -4,6 +4,8 @@ #include <wayland-server-core.h> #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_buffer.h> +#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h> +#include <wlr/types/wlr_foreign_toplevel_management_v1.h> #include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_server_decoration.h> #include <wlr/types/wlr_subcompositor.h> diff --git a/sway/xdg_activation_v1.c b/sway/xdg_activation_v1.c @@ -1,4 +1,5 @@ #include <wlr/types/wlr_xdg_activation_v1.h> +#include <wlr/types/wlr_xdg_shell.h> #include "sway/desktop/launcher.h" #include "sway/tree/view.h" #include "sway/tree/workspace.h"