窗口 metadata 添加 role 字段

This commit is contained in:
zedhugh committed 2026-04-07 05:33:33 +08:00
1 parent 9728fad871
commit 5353e4c677
6 files changed
+30 -8

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ static bool handle_map_request(backend_t *backend, event_t *event,
event->type = ZDWM_EVENT_WINDOW_MAP_REQUEST;
event->data.window_map_request.window = window;
window_metadata_t *metadata = &event->data.window_map_request.metadata;
metadata->app_id = window_get_role(backend, window);
metadata->role = window_get_role(backend, window);
metadata->title = window_get_title(backend, window);
window_get_class(backend, window, &metadata->class_name,
&metadata->instance_name);