diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-03-09 02:08:43 +0530 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-03-09 02:08:43 +0530 |
| commit | 60e05dd567bee2b894aa103ba74dacee320c060e (patch) | |
| tree | 81d50244f49829169068d93ee898f9d97348532b | |
| parent | 6559d36009d72ec7ff6a502a9b220e3a89f1df64 (diff) | |
sway/server: create ext-data-control manager
| -rw-r--r-- | include/sway/server.h | 3 | ||||
| -rw-r--r-- | sway/server.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/sway/server.h b/include/sway/server.h index 7b76eb90..95c9c45b 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -104,7 +104,8 @@ struct sway_server { struct wlr_ext_foreign_toplevel_list_v1 *foreign_toplevel_list; struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager; struct wlr_content_type_manager_v1 *content_type_manager_v1; - struct wlr_data_control_manager_v1 *data_control_manager_v1; + struct wlr_data_control_manager_v1 *wlr_data_control_manager_v1; + struct wlr_ext_data_control_manager_v1 *ext_data_control_manager_v1; struct wlr_screencopy_manager_v1 *screencopy_manager_v1; struct wlr_ext_image_copy_capture_manager_v1 *ext_image_copy_capture_manager_v1; struct wlr_export_dmabuf_manager_v1 *export_dmabuf_manager_v1; diff --git a/sway/server.c b/sway/server.c index c7fc2a6d..5de6648f 100644 --- a/sway/server.c +++ b/sway/server.c @@ -14,6 +14,7 @@ #include <wlr/types/wlr_content_type_v1.h> #include <wlr/types/wlr_cursor_shape_v1.h> #include <wlr/types/wlr_data_control_v1.h> +#include <wlr/types/wlr_ext_data_control_v1.h> #include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_drm.h> #include <wlr/types/wlr_export_dmabuf_v1.h> @@ -108,7 +109,8 @@ static bool is_privileged(const struct wl_global *global) { global == server.input_method->global || global == server.foreign_toplevel_list->global || global == server.foreign_toplevel_manager->global || - global == server.data_control_manager_v1->global || + global == server.wlr_data_control_manager_v1->global || + global == server.ext_data_control_manager_v1->global || global == server.screencopy_manager_v1->global || global == server.ext_image_copy_capture_manager_v1->global || global == server.export_dmabuf_manager_v1->global || @@ -376,7 +378,8 @@ bool server_init(struct sway_server *server) { server->screencopy_manager_v1 = wlr_screencopy_manager_v1_create(server->wl_display); server->ext_image_copy_capture_manager_v1 = wlr_ext_image_copy_capture_manager_v1_create(server->wl_display, 1); wlr_ext_output_image_capture_source_manager_v1_create(server->wl_display, 1); - server->data_control_manager_v1 = wlr_data_control_manager_v1_create(server->wl_display); + server->wlr_data_control_manager_v1 = wlr_data_control_manager_v1_create(server->wl_display); + server->ext_data_control_manager_v1 = wlr_ext_data_control_manager_v1_create(server->wl_display, 1); server->security_context_manager_v1 = wlr_security_context_manager_v1_create(server->wl_display); wlr_viewporter_create(server->wl_display); wlr_single_pixel_buffer_manager_v1_create(server->wl_display); |
