mirror of
https://github.com/swaywm/sway.git
synced 2026-02-06 04:06:25 -05:00
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.
This commit is contained in:
parent
3d6b9a2848
commit
776136fcd7
2 changed files with 9 additions and 5 deletions
|
|
@ -10,6 +10,14 @@
|
|||
#define _SWAY_SCENE_DESCRIPTOR_H
|
||||
#include <wlr/types/wlr_scene.h>
|
||||
|
||||
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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -190,11 +191,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;
|
||||
struct wlr_xdg_popup *wlr_xdg_popup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue