From d3f0929f7959b3ee3d1ebe0358fa204bbca50c92 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 26 Aug 2024 15:09:44 -0400 Subject: [PATCH] scene_descriptor: Move sway_popup_desc to scene_descriptor.h We'll want to use the descriptor type for a helper soon and we don't want to pull all of view.h with us. --- include/sway/scene_descriptor.h | 8 ++++++++ include/sway/tree/view.h | 6 +----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/sway/scene_descriptor.h b/include/sway/scene_descriptor.h index 2649d7c2..9ffb2e5d 100644 --- a/include/sway/scene_descriptor.h +++ b/include/sway/scene_descriptor.h @@ -10,6 +10,14 @@ #define _SWAY_SCENE_DESCRIPTOR_H #include +struct sway_view; + +// used for SWAY_SCENE_DESC_POPUP +struct sway_popup_desc { + struct wlr_scene_node *relative; + struct sway_view *view; +}; + enum sway_scene_descriptor_type { SWAY_SCENE_DESC_BUFFER_TIMER, SWAY_SCENE_DESC_NON_INTERACTIVE, diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 14aad1a1..22efbfc6 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -11,6 +11,7 @@ #endif #include "sway/input/input-manager.h" #include "sway/input/seat.h" +#include "sway/scene_descriptor.h" struct sway_container; struct sway_xdg_decoration; @@ -187,11 +188,6 @@ struct sway_xwayland_unmanaged { }; #endif -struct sway_popup_desc { - struct wlr_scene_node *relative; - struct sway_view *view; -}; - struct sway_xdg_popup { struct sway_view *view;