aboutsummaryrefslogtreecommitdiffstats
path: root/sway/server.c
diff options
context:
space:
mode:
authorLibravatar Merlin Lex <merlin@gandalf.ardholen.net>2024-02-11 12:20:15 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2024-02-12 15:36:44 +0100
commit1b5515400d0e10c8e1205b88cfc0e46ecb5faa96 (patch)
treeb6ca6c061c6bb273f5d211dea6e86e3384118a13 /sway/server.c
parentconfig: use format_str() instead of hand-rolled snprintf() (diff)
downloadsway-1b5515400d0e10c8e1205b88cfc0e46ecb5faa96.tar.gz
sway-1b5515400d0e10c8e1205b88cfc0e46ecb5faa96.tar.zst
sway-1b5515400d0e10c8e1205b88cfc0e46ecb5faa96.zip
ext-foreign-toplevel-list: Implement protocol
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4543
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index cc20e89d..8b8ccce9 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -60,6 +60,7 @@
60 60
61#define SWAY_XDG_SHELL_VERSION 2 61#define SWAY_XDG_SHELL_VERSION 2
62#define SWAY_LAYER_SHELL_VERSION 4 62#define SWAY_LAYER_SHELL_VERSION 4
63#define SWAY_FOREIGN_TOPLEVEL_LIST_VERSION 1
63 64
64bool allow_unsupported_gpu = false; 65bool allow_unsupported_gpu = false;
65 66
@@ -93,6 +94,7 @@ static bool is_privileged(const struct wl_global *global) {
93 global == server.output_manager_v1->global || 94 global == server.output_manager_v1->global ||
94 global == server.output_power_manager_v1->global || 95 global == server.output_power_manager_v1->global ||
95 global == server.input_method->global || 96 global == server.input_method->global ||
97 global == server.foreign_toplevel_list->global ||
96 global == server.foreign_toplevel_manager->global || 98 global == server.foreign_toplevel_manager->global ||
97 global == server.data_control_manager_v1->global || 99 global == server.data_control_manager_v1->global ||
98 global == server.screencopy_manager_v1->global || 100 global == server.screencopy_manager_v1->global ||
@@ -289,6 +291,8 @@ bool server_init(struct sway_server *server) {
289 &server->output_power_manager_set_mode); 291 &server->output_power_manager_set_mode);
290 server->input_method = wlr_input_method_manager_v2_create(server->wl_display); 292 server->input_method = wlr_input_method_manager_v2_create(server->wl_display);
291 server->text_input = wlr_text_input_manager_v3_create(server->wl_display); 293 server->text_input = wlr_text_input_manager_v3_create(server->wl_display);
294 server->foreign_toplevel_list =
295 wlr_ext_foreign_toplevel_list_v1_create(server->wl_display, SWAY_FOREIGN_TOPLEVEL_LIST_VERSION);
292 server->foreign_toplevel_manager = 296 server->foreign_toplevel_manager =
293 wlr_foreign_toplevel_manager_v1_create(server->wl_display); 297 wlr_foreign_toplevel_manager_v1_create(server->wl_display);
294 298