]> git.mdlowis.com Git - proto/labwc.git/commitdiff
overlay.h: reduce included headers
authortokyo4j <hrak1529@gmail.com>
Sat, 30 Aug 2025 19:38:36 +0000 (04:38 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 31 Aug 2025 12:24:51 +0000 (13:24 +0100)
include/overlay.h
src/input/tablet.c
src/input/touch.c
src/osd/osd-thumbnail.c
src/overlay.c
src/resize-outlines.c

index 96897cadc7098659c2d667cb4e49dcd4c646e945..111532a1df4db7cbbf396285658594f1ae6828e5 100644 (file)
@@ -2,10 +2,9 @@
 #ifndef LABWC_OVERLAY_H
 #define LABWC_OVERLAY_H
 
-#include <wlr/util/box.h>
-#include "common/graphic-helpers.h"
-#include "regions.h"
-#include "view.h"
+#include "common/edge.h"
+
+struct seat;
 
 /* TODO: replace this with single lab_scene_rect */
 struct overlay_rect {
index ab96fb84ae0df68db3a3a334c9c5bdce33ed16e6..9d9b9815cfc4cc6e41847ba23859a9adbd36c1ec 100644 (file)
@@ -18,6 +18,7 @@
 #include "labwc.h"
 #include "idle.h"
 #include "action.h"
+#include "view.h"
 
 bool
 tablet_tool_has_focused_surface(struct seat *seat)
index 82b9042bce5c999a075502fc21c90ed25d24e791..0486535e4f92812165ae51ec414abfd809541747 100644 (file)
@@ -15,6 +15,7 @@
 #include "idle.h"
 #include "labwc.h"
 #include "ssd.h"
+#include "view.h"
 
 /* Holds layout -> surface offsets to report motion events in relative coords */
 struct touch_point {
index 2f37d50df8f06b628612300edee6b7bb26f4efa3..3ede04d6fda2b994d1eaf0e03c1afefe7cb86331 100644 (file)
@@ -5,7 +5,6 @@
 #include <wlr/types/wlr_compositor.h>
 #include <wlr/render/allocator.h>
 #include "config/rcxml.h"
-#include "config/types.h"
 #include "common/array.h"
 #include "common/box.h"
 #include "common/lab-scene-rect.h"
@@ -15,6 +14,7 @@
 #include "osd.h"
 #include "output.h"
 #include "theme.h"
+#include "view.h"
 
 struct osd_thumbnail_scene_item {
        struct view *view;
index 0c2235d356d5c30dcc24cccd7b58a9fa213469bc..2a5cc845018a68b57a3dae4e0a308aee28292058 100644 (file)
@@ -6,8 +6,9 @@
 #include "config/rcxml.h"
 #include "labwc.h"
 #include "output.h"
-#include "view.h"
+#include "regions.h"
 #include "theme.h"
+#include "view.h"
 
 static void
 create_overlay_rect(struct seat *seat, struct overlay_rect *rect,
index abb201a12490b523d3edd95ecc16d4eccdef6281..a32351ac752b2d749c1e534a808829a811c2c7f2 100644 (file)
@@ -7,6 +7,7 @@
 #include "resize-indicator.h"
 #include "ssd.h"
 #include "theme.h"
+#include "view.h"
 
 bool
 resize_outlines_enabled(struct view *view)