diff options
| author | Simon Ser <contact@emersion.fr> | 2024-05-25 00:02:48 +0200 |
|---|---|---|
| committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-05-27 09:28:43 -0400 |
| commit | d0bd591ee70b706182b6bfff45a68bc5404ea89b (patch) | |
| tree | f729d10af593d47a3e52d2e76a975c6edae02f33 /include | |
| parent | df69367d927e6d4fde70d61611c9317b70537261 (diff) | |
Drop server.h include from input/input-manager.h
The only reason it's included there is for a declaration of
struct sway_server, but we can just forward-declare it.
This avoids rebuilding almost all of Sway when touching server.h.
All other server.h includes are from source files, not headers.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/criteria.h | 4 | ||||
| -rw-r--r-- | include/sway/input/input-manager.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/sway/criteria.h b/include/sway/criteria.h index 758d70ed..ae546821 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h @@ -7,6 +7,10 @@ #include "list.h" #include "tree/view.h" +#if WLR_HAS_XWAYLAND +#include "sway/xwayland.h" +#endif + enum criteria_type { CT_COMMAND = 1 << 0, CT_ASSIGN_OUTPUT = 1 << 1, diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index 45c75199..b014e18f 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h @@ -5,10 +5,11 @@ #include <wlr/types/wlr_virtual_keyboard_v1.h> #include <wlr/types/wlr_virtual_pointer_v1.h> #include <wlr/types/wlr_transient_seat_v1.h> -#include "sway/server.h" #include "sway/config.h" #include "list.h" +struct sway_server; + struct sway_input_device { char *identifier; struct wlr_input_device *wlr_device; |
