]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src: remove unused #includes (via include-what-you-use)
authorJohn Lindgren <john@jlindgren.net>
Wed, 3 Sep 2025 03:19:38 +0000 (23:19 -0400)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 7 Sep 2025 10:34:30 +0000 (19:34 +0900)
52 files changed:
clients/labnag.c
clients/pool-buffer.c
src/common/box.c
src/common/dir.c
src/common/font.c
src/common/graphic-helpers.c
src/common/parse-double.c
src/common/scene-helpers.c
src/common/spawn.c
src/config/keybind.c
src/config/mousebind.c
src/config/rcxml.c
src/config/session.c
src/config/touch.c
src/desktop-entry.c
src/desktop.c
src/edges.c
src/img/img-png.c
src/img/img-svg.c
src/img/img-xbm.c
src/img/img.c
src/input/cursor.c
src/input/ime.c
src/input/key-state.c
src/input/keyboard.c
src/input/tablet-pad.c
src/input/tablet.c
src/interactive.c
src/layers.c
src/menu/menu.c
src/osd/osd-classic.c
src/osd/osd-thumbnail.c
src/osd/osd.c
src/output.c
src/protocols/cosmic_workspaces/cosmic-workspaces.c
src/protocols/ext-workspace/ext-workspace.c
src/regions.c
src/resistance.c
src/scaled-buffer/scaled-font-buffer.c
src/scaled-buffer/scaled-icon-buffer.c
src/scaled-buffer/scaled-img-buffer.c
src/server.c
src/snap-constraints.c
src/ssd/ssd-border.c
src/ssd/ssd-extents.c
src/ssd/ssd-shadow.c
src/ssd/ssd-titlebar.c
src/ssd/ssd.c
src/theme.c
src/view-impl-common.c
src/view.c
src/window-rules.c

index 92eda9cba2547c1b2288f87e542a55948097a53e..20fb1dbe8fcbd4f0a69c16b13a9f44214a178b51 100644 (file)
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
-#include <strings.h>
 #ifdef __FreeBSD__
 #include <sys/event.h> /* For signalfd() */
 #endif
 #include <sys/signalfd.h>
-#include <sys/stat.h>
 #include <sys/timerfd.h>
 #include <sys/wait.h>
 #include <time.h>
 #include <unistd.h>
-#include <wayland-client.h>
 #include <wayland-cursor.h>
 #include <wlr/util/log.h>
 #include "action-prompt-codes.h"
@@ -62,8 +59,6 @@ struct conf {
        ssize_t button_padding;
 };
 
-struct nag;
-
 struct pointer {
        struct wl_pointer *pointer;
        uint32_t serial;
index 5dabc8aa5f6df105470a6d0981f163f7021bc604..35e860333572c3190abf57cfa335793e639b8f6a 100644 (file)
@@ -5,18 +5,14 @@
  * Copyright (C) 2016-2017 Drew DeVault
  */
 #define _POSIX_C_SOURCE 200809L
-#include <assert.h>
 #include <cairo.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <pango/pangocairo.h>
 #include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
 #include <sys/mman.h>
 #include <time.h>
 #include <unistd.h>
-#include <wayland-client.h>
 #include "pool-buffer.h"
 
 static int anonymous_shm_open(void)
index 84db600d408d8985af38347562fc13366927fbea..2520f733daeb7176a32e261af68c3e2732d16af3 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "common/box.h"
-#include <assert.h>
 #include "common/macros.h"
 
 bool
index a76d5c741863d6db1b8211afd5e6aa54a0cb80c8..76b4e65e8cfafe9aa02fe3c37c1f2ed81ae14a3c 100644 (file)
@@ -7,16 +7,13 @@
 #include "common/dir.h"
 #include <assert.h>
 #include <glib.h>
-#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <sys/stat.h>
 #include "common/buf.h"
 #include "common/list.h"
 #include "common/mem.h"
 #include "common/string-helpers.h"
 #include "config/rcxml.h"
-#include "labwc.h"
 
 struct dir {
        const char *prefix;
index 8823f445fe00fcb816a3f4b678f3f569fdb41b4b..81784ea88e214735587ae089e727d8df964d8be3 100644 (file)
@@ -1,14 +1,10 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "common/font.h"
 #include <cairo.h>
-#include <drm_fourcc.h>
 #include <pango/pangocairo.h>
-#include <wlr/render/wlr_renderer.h>
-#include <wlr/util/box.h>
 #include <wlr/util/log.h>
 #include "common/graphic-helpers.h"
 #include "common/string-helpers.h"
-#include "labwc.h"
 #include "buffer.h"
 
 PangoFontDescription *
index 602507a92b87ecd7e43f04f7d48c5405b51dddb0..bc0adbc4123baea2762e16717a1516729edf1e90 100644 (file)
@@ -3,7 +3,7 @@
 #include "common/graphic-helpers.h"
 #include <cairo.h>
 #include <glib.h> /* g_ascii_strcasecmp */
-#include <wlr/types/wlr_scene.h>
+#include <wlr/util/box.h>
 #include "common/macros.h"
 #include "xcolor-table.h"
 
index 0e32ef3ed0132d7f1bd5a054af686ad2d2781bf8..a41e57f2b4b073c588c883dd3f0b6227946e88ca 100644 (file)
@@ -2,7 +2,6 @@
 #include "common/parse-double.h"
 #include <locale.h>
 #include <stdlib.h>
-#include <string.h>
 #include <wlr/util/log.h>
 #include "common/mem.h"
 
index 5f8a813958a5a29b17e8c2b897765fb1b2a61466..517789c0d64eaf0c1c18c26170150c6faf703cf7 100644 (file)
@@ -5,12 +5,8 @@
 #include <wlr/types/wlr_output.h>
 #include <wlr/types/wlr_scene.h>
 #include <wlr/util/log.h>
-#include <wlr/util/region.h>
-#include <wlr/util/transform.h>
-#include "labwc.h"
 #include "magnifier.h"
 #include "output.h"
-#include "output-state.h"
 
 struct wlr_surface *
 lab_wlr_surface_from_node(struct wlr_scene_node *node)
index 51de6b4acc4a2085d99390e3cf72dd155c6fb9b8..898c4800442ba2dd4af6dd792cd83012916fd432 100644 (file)
@@ -6,7 +6,6 @@
 #include <glib.h>
 #include <signal.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <sys/wait.h>
 #include <unistd.h>
 #include <wlr/util/log.h>
index 2635b7bc521d07bac6e24e4585919957c496e72b..1705983a76795ea91ce98b085845d2855c0eb75d 100644 (file)
@@ -3,7 +3,6 @@
 #include "config/keybind.h"
 #include <assert.h>
 #include <glib.h>
-#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <wlr/types/wlr_keyboard_group.h>
index 7460dfad4b7811ec788bac2e88b65eddc11fa48e..6b5254f3ec4f9930792dc5255a3a533168f141b3 100644 (file)
@@ -4,7 +4,6 @@
 #include <assert.h>
 #include <linux/input-event-codes.h>
 #include <strings.h>
-#include <unistd.h>
 #include <wlr/util/log.h>
 #include "common/list.h"
 #include "common/mem.h"
index 08a70edf10f45f06f01f019ae6d2281161b4b64a..351953459b71d144f422abdbec84cea8008c96f1 100644 (file)
@@ -2,17 +2,13 @@
 #define _POSIX_C_SOURCE 200809L
 #include "config/rcxml.h"
 #include <assert.h>
-#include <fcntl.h>
 #include <glib.h>
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <strings.h>
-#include <unistd.h>
-#include <wayland-server-core.h>
 #include <wlr/util/box.h>
 #include <wlr/util/log.h>
 #include "action.h"
index c90c655de80887a0b0858917aa54d2ba05bfb4b5..515b6803ebafe3d3be432576a170b424578bc938 100644 (file)
@@ -8,14 +8,12 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 #include <wlr/backend/drm.h>
 #include <wlr/backend/multi.h>
 #include <wlr/util/log.h>
 #include "common/buf.h"
 #include "common/dir.h"
 #include "common/file-helpers.h"
-#include "common/mem.h"
 #include "common/parse-bool.h"
 #include "common/spawn.h"
 #include "common/string-helpers.h"
index fde785e14451ba860f88a64fec9231055c2c5074..05592a46b8dd58e6780cf3a18622619fcc4747a7 100644 (file)
@@ -3,7 +3,6 @@
 #include "config/touch.h"
 #include <strings.h>
 #include <wlr/util/log.h>
-#include "common/list.h"
 #include "config/rcxml.h"
 
 static struct touch_config_entry *
index 67b85e1df7fb0bc2cba71c1e98b0789c786b7d68..60cff28ed55ed99183f623a1e20c9effd875286c 100644 (file)
@@ -7,12 +7,10 @@
 #include <string.h>
 #include <strings.h>
 #include <wlr/util/log.h>
-#include "common/macros.h"
 #include "common/mem.h"
 #include "common/string-helpers.h"
 #include "config/rcxml.h"
 #include "img/img.h"
-
 #include "labwc.h"
 
 static const char *debug_libsfdo;
index bb9b5dfd6e00d132fffa093c6bc34fe3785e9a50..7bfb2cbbbfe0cdbddf4a8b9d2cc7354ad41ad64b 100644 (file)
 #include "labwc.h"
 #include "layers.h"
 #include "node.h"
-#include "osd.h"
 #include "output.h"
 #include "ssd.h"
 #include "view.h"
-#include "window-rules.h"
 #include "workspaces.h"
-#include "xwayland.h"
 
 #if HAVE_XWAYLAND
 #include <wlr/xwayland.h>
index 79532226f7fb1c1f21c54d8096602e48a91a5f34..bdd1ef45feb55932424d4d696b145d0d4b7420af 100644 (file)
@@ -3,7 +3,6 @@
 #include <assert.h>
 #include <limits.h>
 #include <pixman.h>
-#include <wlr/util/edges.h>
 #include <wlr/util/box.h>
 #include "common/border.h"
 #include "common/box.h"
index 5e151f21884f4bafe75889d15d62c30ad4e5ae43..29eba44d714cb2fdef9e773107882e78e7e1b2f5 100644 (file)
@@ -4,12 +4,10 @@
  */
 #define _POSIX_C_SOURCE 200809L
 #include "img/img-png.h"
-#include <assert.h>
 #include <cairo.h>
 #include <png.h>
 #include <stdbool.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <wlr/util/log.h>
 #include "buffer.h"
 #include "common/string-helpers.h"
index ad2d2916cda65a4994fe293db17f3dd7c0f60d38..1c12bde37b132ea54e2e902120373272a9c857f8 100644 (file)
@@ -6,13 +6,10 @@
 #include "img/img-svg.h"
 #include <cairo.h>
 #include <librsvg/rsvg.h>
-#include <stdbool.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <wlr/util/log.h>
 #include "buffer.h"
 #include "common/string-helpers.h"
-#include "labwc.h"
 
 RsvgHandle *
 img_svg_load(const char *filename)
index ca433cadbfa8fd7c055d4dae1f685afcccc92c8a..6ecbbc9a33855c464ce8b47b9a949b0b6e06681a 100644 (file)
@@ -8,13 +8,10 @@
 #define _POSIX_C_SOURCE 200809L
 #include "img/img-xbm.h"
 #include <assert.h>
-#include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <drm_fourcc.h>
-#include "img/img.h"
 #include "common/grab-file.h"
 #include "common/mem.h"
 #include "common/string-helpers.h"
index d062022e8428bbdee04934947984c495e6ae3d4d..41bda9e47a357ce68820309b74544da58e50ccf2 100644 (file)
@@ -2,7 +2,6 @@
 
 #include "img/img.h"
 #include <assert.h>
-#include <wlr/util/log.h>
 #include "buffer.h"
 #include "config.h"
 #include "common/box.h"
index 42757128373d24fe642b5ed91eb7d989039f1228..a24235cc7f2790f37997e573bcb7357c3a47c0a4 100644 (file)
@@ -2,8 +2,6 @@
 #define _POSIX_C_SOURCE 200809L
 #include "input/cursor.h"
 #include <assert.h>
-#include <linux/input-event-codes.h>
-#include <sys/time.h>
 #include <time.h>
 #include <wlr/backend/libinput.h>
 #include <wlr/types/wlr_cursor_shape_v1.h>
@@ -19,7 +17,6 @@
 #include "action.h"
 #include "common/macros.h"
 #include "common/mem.h"
-#include "common/scene-helpers.h"
 #include "common/surface-helpers.h"
 #include "config/mousebind.h"
 #include "config/rcxml.h"
@@ -33,7 +30,6 @@
 #include "layers.h"
 #include "menu/menu.h"
 #include "output.h"
-#include "regions.h"
 #include "resistance.h"
 #include "resize-outlines.h"
 #include "ssd.h"
index 36bc8252c89c7446767fe1396faed29fb24686cd..18fb252f2eca8a7e390a7a77f1b3f496ab1761c2 100644 (file)
@@ -11,7 +11,6 @@
 #include "labwc.h"
 #include "node.h"
 #include "output.h"
-#include "view.h"
 
 #define SAME_CLIENT(wlr_obj1, wlr_obj2) \
        (wl_resource_get_client((wlr_obj1)->resource) \
index 12992615ac67f894b36f940b05eeb991a8ee2f63..def6b72c860d89b1f80d148e9d729494344a1601 100644 (file)
@@ -4,8 +4,6 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <string.h>
-#include <wlr/util/log.h>
 #include "common/set.h"
 
 static struct lab_set pressed, bound, pressed_sent;
index 0050b860e8d472bafad75a75f8a281dd476fd84d..3ca616e156b414237782f4e7f61028f9aac6fd24 100644 (file)
@@ -3,7 +3,6 @@
 #include "input/keyboard.h"
 #include <assert.h>
 #include <stdlib.h>
-#include <wlr/backend/multi.h>
 #include <wlr/backend/session.h>
 #include <wlr/interfaces/wlr_keyboard.h>
 #include <wlr/types/wlr_keyboard_group.h>
@@ -17,7 +16,6 @@
 #include "labwc.h"
 #include "menu/menu.h"
 #include "osd.h"
-#include "regions.h"
 #include "session-lock.h"
 #include "view.h"
 #include "workspaces.h"
index 06e00f4efd1a617dfad4842f127eae3bff056d2f..5d9e6dd9b066460ffd7339728342294db2d0dac9 100644 (file)
@@ -1,11 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "input/tablet-pad.h"
-#include <assert.h>
 #include <stdlib.h>
 #include <wlr/backend/libinput.h>
 #include <wlr/types/wlr_compositor.h>
 #include <wlr/types/wlr_tablet_pad.h>
-#include <wlr/types/wlr_tablet_tool.h>
 #include <wlr/util/log.h>
 #include "common/macros.h"
 #include "common/mem.h"
index 11a5a7d5f838a5f411ba8803dc145b998e66942d..4b12579a39fe8f2c5d11a6d1ad68773a2f4ec9d0 100644 (file)
@@ -1,9 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "input/tablet.h"
-#include <assert.h>
 #include <stdlib.h>
 #include <linux/input-event-codes.h>
-#include <wlr/types/wlr_tablet_pad.h>
 #include <wlr/types/wlr_tablet_tool.h>
 #include <wlr/util/log.h>
 #include <wlr/types/wlr_scene.h>
index 061fe07a7fcdc1690c4090864aca36d73089abf6..2dc4faa156889afe80282f304bf63d83a46312bd 100644 (file)
@@ -7,7 +7,6 @@
 #include "output.h"
 #include "regions.h"
 #include "resize-indicator.h"
-#include "snap.h"
 #include "view.h"
 #include "window-rules.h"
 
index 685f8973027c27632ecbcbac26afadf450f81107..c8f8e953a9277c3f4738daed3c90c5442dd411a2 100644 (file)
@@ -10,9 +10,7 @@
 #include <assert.h>
 #include <stdbool.h>
 #include <stdlib.h>
-#include <string.h>
 #include <strings.h>
-#include <wayland-server.h>
 #include <wlr/types/wlr_fractional_scale_v1.h>
 #include <wlr/types/wlr_layer_shell_v1.h>
 #include <wlr/types/wlr_xdg_shell.h>
index e55f762602a2eae00585986eabf43fdaf16888d1..5cbd5804d646bfaa46e1c09e6f21a0f069ffc3d8 100644 (file)
@@ -3,7 +3,6 @@
 #include "menu/menu.h"
 #include <assert.h>
 #include <libxml/parser.h>
-#include <libxml/tree.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -20,7 +19,6 @@
 #include "common/lab-scene-rect.h"
 #include "common/list.h"
 #include "common/mem.h"
-#include "common/scene-helpers.h"
 #include "common/spawn.h"
 #include "common/string-helpers.h"
 #include "common/xml.h"
index 501a86a24914cee79d0270deeb566f30a91c5fb3..be740f2f786c282941025b221fec217cee0e898b 100644 (file)
@@ -1,24 +1,20 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <assert.h>
-#include <cairo.h>
-#include <wlr/util/log.h>
+#include <wlr/types/wlr_scene.h>
 #include <wlr/util/box.h>
+#include <wlr/util/log.h>
 #include "common/array.h"
 #include "common/buf.h"
 #include "common/font.h"
 #include "common/lab-scene-rect.h"
-#include "common/scene-helpers.h"
 #include "common/string-helpers.h"
 #include "config/rcxml.h"
 #include "labwc.h"
-#include "node.h"
 #include "osd.h"
 #include "output.h"
 #include "scaled-buffer/scaled-font-buffer.h"
 #include "scaled-buffer/scaled-icon-buffer.h"
 #include "theme.h"
-#include "view.h"
-#include "window-rules.h"
 #include "workspaces.h"
 
 struct osd_classic_scene_item {
index 9804d1ec18f96940f6952e57ae2331cb4fc026de..0345582af69b496131af21efb76c92a2a3a59559 100644 (file)
@@ -2,7 +2,6 @@
 #include <assert.h>
 #include <wlr/render/swapchain.h>
 #include <wlr/types/wlr_scene.h>
-#include <wlr/types/wlr_compositor.h>
 #include <wlr/render/allocator.h>
 #include "config/rcxml.h"
 #include "common/array.h"
index e8d323488b9a3e7bb3f82a3d134addf88d58c6b7..8500eaf1e8057840ee500cf77ef82b2bd5d372f1 100644 (file)
@@ -1,23 +1,19 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "osd.h"
 #include <assert.h>
-#include <cairo.h>
-#include <wlr/util/log.h>
+#include <wlr/types/wlr_scene.h>
 #include <wlr/util/box.h>
 #include "common/array.h"
 #include "common/lab-scene-rect.h"
 #include "common/scene-helpers.h"
 #include "config/rcxml.h"
 #include "labwc.h"
-#include "node.h"
 #include "output.h"
 #include "scaled-buffer/scaled-font-buffer.h"
 #include "scaled-buffer/scaled-icon-buffer.h"
 #include "ssd.h"
 #include "theme.h"
 #include "view.h"
-#include "window-rules.h"
-#include "workspaces.h"
 
 static void update_osd(struct server *server);
 
index c5c88dfce3edd3567da4984224d6b50b26ee0867..c561f0f7fe7158527ae32b2353ec8ecdbe5bc9d1 100644 (file)
@@ -12,8 +12,6 @@
 #include <strings.h>
 #include <wlr/backend/drm.h>
 #include <wlr/backend/wayland.h>
-#include <wlr/types/wlr_buffer.h>
-#include <wlr/types/wlr_drm_lease_v1.h>
 #include <wlr/types/wlr_gamma_control_v1.h>
 #include <wlr/types/wlr_output.h>
 #include <wlr/types/wlr_output_management_v1.h>
@@ -21,7 +19,6 @@
 #include <wlr/types/wlr_xcursor_manager.h>
 #include <wlr/types/wlr_xdg_output_v1.h>
 #include <wlr/types/wlr_scene.h>
-#include <wlr/util/region.h>
 #include <wlr/util/log.h>
 #include "common/macros.h"
 #include "common/mem.h"
index 20d8b82214ca3323e793032795553155d3b54f27..d12611cb9eaea46f2aeb4cd6b3e22248cb2756ac 100644 (file)
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <assert.h>
-#include <wlr/types/wlr_output.h>
 #include <wlr/util/log.h>
 #include "common/array.h"
 #include "common/mem.h"
index eb02e3dc686e243bcf457ccb5c4fbad4b3c8916e..30875811ab4ad6584d941fbe183177f3370700d7 100644 (file)
@@ -1,8 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <assert.h>
-#include <wlr/types/wlr_output.h>
 #include <wlr/util/log.h>
-#include "common/array.h"
 #include "common/mem.h"
 #include "common/list.h"
 #include "ext-workspace-v1-protocol.h"
index c06698b99448bb5bddae8e9c9efc4513a8e86261..bb0ecb2384e3c3ffd1357f259f7b0018a8cec5ae 100644 (file)
@@ -6,9 +6,7 @@
 #include <float.h>
 #include <math.h>
 #include <string.h>
-#include <wlr/types/wlr_scene.h>
 #include <wlr/util/box.h>
-#include <wlr/util/log.h>
 #include "common/list.h"
 #include "common/mem.h"
 #include "config/rcxml.h"
index 4566c5d0f7f352adc3334b8a847f248af3875e6d..12cbec90abe7deb40386e2758d1128614160552f 100644 (file)
@@ -1,9 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "resistance.h"
 #include <assert.h>
-#include <limits.h>
 #include "common/border.h"
-#include "common/macros.h"
 #include "config/rcxml.h"
 #include "edges.h"
 #include "labwc.h"
index 7b252481991ba8894fdcc155d399565abfefbfa9..61fd5db308d284259976330f741763f31af42f92 100644 (file)
@@ -4,9 +4,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
-#include <wayland-server-core.h>
 #include <wlr/util/log.h>
-#include "buffer.h"
 #include "common/font.h"
 #include "common/graphic-helpers.h"
 #include "common/mem.h"
index b8f08efcd75d8e782d2bbcc698c0c03fb27930ab..b712433697b9599e967ae13495999beb8b91cfbf 100644 (file)
@@ -5,7 +5,6 @@
 #include <string.h>
 #include <wlr/util/log.h>
 #include "buffer.h"
-#include "common/macros.h"
 #include "common/mem.h"
 #include "common/string-helpers.h"
 #include "config.h"
index 488c861c9229b5eab7a7cea1fc4345670fe9b068..4ce9618a852d4a0fc4d1c6da35756b89e30fb034 100644 (file)
@@ -2,9 +2,6 @@
 #define _POSIX_C_SOURCE 200809L
 #include "scaled-buffer/scaled-img-buffer.h"
 #include <assert.h>
-#include <wayland-server-core.h>
-#include <wlr/types/wlr_scene.h>
-#include "buffer.h"
 #include "common/mem.h"
 #include "img/img.h"
 #include "node.h"
index 7560986d27bb99f3c9130a4d8b63b7e47cda74db..56f091b9c00b05c0c68dbe8b8307dcf278e80371 100644 (file)
@@ -19,7 +19,6 @@
 #include <wlr/types/wlr_ext_image_copy_capture_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_input_method_v2.h>
 #include <wlr/types/wlr_linux_drm_syncobj_v1.h>
 #include <wlr/types/wlr_output_power_management_v1.h>
@@ -45,7 +44,6 @@
 #include "xwayland-shell-v1-protocol.h"
 #endif
 
-#include "drm-lease-v1-protocol.h"
 #include "action.h"
 #include "common/macros.h"
 #include "config/rcxml.h"
@@ -59,7 +57,6 @@
 #include "magnifier.h"
 #include "menu/menu.h"
 #include "output.h"
-#include "output-state.h"
 #include "output-virtual.h"
 #include "regions.h"
 #include "resize-indicator.h"
index d579a38758adccea110cf64779a1b2e37cad2597..fd1f09cd0b5ba53faf01a7be5c563b77b1d7e829 100644 (file)
@@ -1,9 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include "snap-constraints.h"
 #include <assert.h>
+#include <string.h>
 #include <wlr/util/box.h>
 #include "common/macros.h"
-#include "labwc.h"
 #include "view.h"
 
 /*
index 54ef73e94edcb7645f4c42d2d3e659dfbd14059b..f0db4fff74a43b5c6a5eb8f82b40920b882cface 100644 (file)
@@ -3,7 +3,6 @@
 #include <assert.h>
 #include <wlr/types/wlr_scene.h>
 #include "common/macros.h"
-#include "common/scene-helpers.h"
 #include "labwc.h"
 #include "ssd.h"
 #include "ssd-internal.h"
index 8a38c39eb42efbbdaef8efe4944d96915263ba0e..bc1ed9f7aa5ad419367ab985b53450eaa7c6a866 100644 (file)
@@ -1,9 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
-#include <assert.h>
 #include <pixman.h>
 #include <wlr/types/wlr_scene.h>
-#include "common/scene-helpers.h"
 #include "config/rcxml.h"
 #include "labwc.h"
 #include "output.h"
index a535112ee493ed381276cf9e6cfa6d16d1dc4adc..53c6631de773c2f68ccc517d33735deda56334be 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
 #include <assert.h>
-#include <cairo.h>
 #include <wlr/types/wlr_scene.h>
 #include "buffer.h"
 #include "config/rcxml.h"
index 84dd527a6783c6b69e22d311e6263464c2d07a3c..b9f95202a67c3f8a5049f09b331f2badb1489dfc 100644 (file)
@@ -6,11 +6,8 @@
 #include <wlr/render/pixman.h>
 #include "buffer.h"
 #include "common/mem.h"
-#include "common/scene-helpers.h"
 #include "common/string-helpers.h"
 #include "config/rcxml.h"
-#include "desktop-entry.h"
-#include "img/img.h"
 #include "labwc.h"
 #include "node.h"
 #include "scaled-buffer/scaled-font-buffer.h"
index afdbcdf9a3685c48d6d9f3efc3cbfd5f592f0e0d..ca3f10a9606d67cadb38dafd7f7004f6798ef3a4 100644 (file)
@@ -11,7 +11,6 @@
 #include <strings.h>
 #include <wlr/types/wlr_scene.h>
 #include "common/mem.h"
-#include "common/scene-helpers.h"
 #include "config/rcxml.h"
 #include "labwc.h"
 #include "node.h"
index a8a3227d8db609dcf3320ad6389de98ee47d4445..f0b481584c962b756e5afac4a47fb2766436ae4d 100644 (file)
@@ -7,7 +7,6 @@
 
 #define _POSIX_C_SOURCE 200809L
 #include "theme.h"
-#include "config.h"
 #include <assert.h>
 #include <cairo.h>
 #include <drm_fourcc.h>
index 377d8c7678899bf3962efc7bc3bfe71962767e70..d529941a0eb7e02213c304388c14d6b078353a85 100644 (file)
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /* view-impl-common.c: common code for shell view->impl functions */
 #include "view-impl-common.h"
-#include <strings.h>
 #include "foreign-toplevel/foreign.h"
 #include "labwc.h"
 #include "view.h"
index 92e5db92deb70d15e834db94331a90d9cda4eb97..1f93d14011677d2f9264892a5188c0042910125e 100644 (file)
@@ -13,7 +13,6 @@
 #include "common/list.h"
 #include "common/match.h"
 #include "common/mem.h"
-#include "common/scene-helpers.h"
 #include "config/rcxml.h"
 #include "foreign-toplevel/foreign.h"
 #include "input/keyboard.h"
@@ -33,7 +32,6 @@
 #include "window-rules.h"
 #include "wlr/util/log.h"
 #include "workspaces.h"
-#include "xwayland.h"
 
 #if HAVE_XWAYLAND
 #include <wlr/xwayland.h>
index 8283e8016041a85d217be4a0422c52643c289158..0b8f11018360f19cf2c7aff58765ca08110b5af2 100644 (file)
@@ -3,12 +3,8 @@
 #include "window-rules.h"
 #include <assert.h>
 #include <stdbool.h>
-#include <cairo.h>
-#include <glib.h>
 #include <strings.h>
-#include <wlr/util/log.h>
 #include "action.h"
-#include "common/match.h"
 #include "config/rcxml.h"
 #include "labwc.h"
 #include "view.h"