diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-11 19:14:05 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-11 19:14:05 +0200 |
commit | 1a72049c04b8c6e1a30f80b3887fc7808a717935 (patch) | |
tree | aeb76d9744044560508da41eb7ddc789b8a6ea4f | |
parent | 86b08e3257a4e3e204740f6252c5b1180ead8467 (diff) | |
download | sway-1a72049c04b8c6e1a30f80b3887fc7808a717935.tar.xz |
Remove WLR_HAS_XDG_FOREIGN checks
References: https://github.com/swaywm/wlroots/pull/2833
-rw-r--r-- | sway/server.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/server.c b/sway/server.c index 278afd19..418f3370 100644 --- a/sway/server.c +++ b/sway/server.c @@ -26,11 +26,9 @@ #include <wlr/types/wlr_viewporter.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_decoration_v1.h> -#if WLR_HAS_XDG_FOREIGN #include <wlr/types/wlr_xdg_foreign_registry.h> #include <wlr/types/wlr_xdg_foreign_v1.h> #include <wlr/types/wlr_xdg_foreign_v2.h> -#endif #include <wlr/types/wlr_xdg_output_v1.h> #include "config.h" #include "list.h" @@ -156,12 +154,10 @@ bool server_init(struct sway_server *server) { wlr_primary_selection_v1_device_manager_create(server->wl_display); wlr_viewporter_create(server->wl_display); -#if WLR_HAS_XDG_FOREIGN struct wlr_xdg_foreign_registry *foreign_registry = wlr_xdg_foreign_registry_create(server->wl_display); wlr_xdg_foreign_v1_create(server->wl_display, foreign_registry); wlr_xdg_foreign_v2_create(server->wl_display, foreign_registry); -#endif // Avoid using "wayland-0" as display socket char name_candidate[16]; |