mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
Add support for xdg-foreign-v1 and xdg-foreign-v2 (#2400)
This commit is contained in:
parent
f1e43762e0
commit
64bb57afa2
1 changed files with 13 additions and 0 deletions
13
src/server.c
13
src/server.c
|
|
@ -20,6 +20,9 @@
|
|||
#include <wlr/types/wlr_single_pixel_buffer_v1.h>
|
||||
#include <wlr/types/wlr_viewporter.h>
|
||||
#include <wlr/types/wlr_tablet_v2.h>
|
||||
#include <wlr/types/wlr_xdg_foreign_registry.h>
|
||||
#include <wlr/types/wlr_xdg_foreign_v1.h>
|
||||
#include <wlr/types/wlr_xdg_foreign_v2.h>
|
||||
|
||||
#if HAVE_XWAYLAND
|
||||
#include <wlr/xwayland.h>
|
||||
|
|
@ -259,7 +262,11 @@ allow_for_sandbox(const struct wlr_security_context_v1_state *security_state,
|
|||
"wp_fractional_scale_manager_v1",
|
||||
"wp_tearing_control_manager_v1",
|
||||
"zwp_tablet_manager_v2",
|
||||
"zxdg_importer_v1",
|
||||
"zxdg_importer_v2",
|
||||
/* plus */
|
||||
"zxdg_exporter_v1",
|
||||
"zxdg_exporter_v2",
|
||||
"zwp_idle_inhibit_manager_v1",
|
||||
"zwp_pointer_constraints_v1",
|
||||
"zxdg_output_manager_v1",
|
||||
|
|
@ -684,6 +691,12 @@ server_init(struct server *server)
|
|||
|
||||
layers_init(server);
|
||||
|
||||
/* These get cleaned up automatically on display destroy */
|
||||
struct wlr_xdg_foreign_registry *registry =
|
||||
wlr_xdg_foreign_registry_create(server->wl_display);
|
||||
wlr_xdg_foreign_v1_create(server->wl_display, registry);
|
||||
wlr_xdg_foreign_v2_create(server->wl_display, registry);
|
||||
|
||||
#if HAVE_LIBSFDO
|
||||
desktop_entry_init(server);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue