aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-07-10 16:44:48 +0200
committerFurkan Sahin <furkan-dev@proton.me>2025-07-10 16:44:48 +0200
commit70b0dcbbd44e92857bab34797cd817f4ac58943c (patch)
treec52d30ebb219fe04836fd547d9d59b43721ebb01 /include
parent1e3706fced46bf6b13640891452ddcffb897ad37 (diff)
Wire up xdg-toplevel-tag-v1
Diffstat (limited to 'include')
-rw-r--r--include/sway/server.h2
-rw-r--r--include/sway/tree/view.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 72bccd70..f50d48f0 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -119,6 +119,8 @@ struct sway_server {
struct wl_listener xdg_activation_v1_request_activate;
struct wl_listener xdg_activation_v1_new_token;
+ struct wl_listener xdg_toplevel_tag_manager_v1_set_tag;
+
struct wl_listener request_set_cursor_shape;
struct wlr_tearing_control_manager_v1 *tearing_control_v1;
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index 6151a023..ae81c5bb 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -25,6 +25,7 @@ enum sway_view_type {
enum sway_view_prop {
VIEW_PROP_TITLE,
VIEW_PROP_APP_ID,
+ VIEW_PROP_TAG,
VIEW_PROP_CLASS,
VIEW_PROP_INSTANCE,
VIEW_PROP_WINDOW_TYPE,
@@ -128,6 +129,7 @@ struct sway_xdg_shell_view {
struct sway_view view;
struct wlr_scene_tree *image_capture_tree;
+ char *tag;
struct wl_listener commit;
struct wl_listener request_move;
@@ -236,6 +238,8 @@ const char *view_get_sandbox_app_id(struct sway_view *view);
const char *view_get_sandbox_instance_id(struct sway_view *view);
+const char *view_get_tag(struct sway_view *view);
+
const char *view_get_shell(struct sway_view *view);
void view_get_constraints(struct sway_view *view, double *min_width,
@@ -360,4 +364,6 @@ void view_send_frame_done(struct sway_view *view);
bool view_can_tear(struct sway_view *view);
+void xdg_toplevel_tag_manager_v1_handle_set_tag(struct wl_listener *listener, void *data);
+
#endif