From 9afcfd44c425691180a96d4e0d6673e5ac96dcce Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Sun, 3 Dec 2017 17:00:17 -0500 Subject: [PATCH] wl-shell: class instead of app_id --- include/sway/view.h | 1 + sway/desktop/wl_shell.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sway/view.h b/include/sway/view.h index f87a8d5bb..7aa04794a 100644 --- a/include/sway/view.h +++ b/include/sway/view.h @@ -42,6 +42,7 @@ enum sway_view_type { enum sway_view_prop { VIEW_PROP_TITLE, VIEW_PROP_APP_ID, + VIEW_PROP_CLASS, VIEW_PROP_INSTANCE, }; diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c index e7b42fce7..9641b9113 100644 --- a/sway/desktop/wl_shell.c +++ b/sway/desktop/wl_shell.c @@ -21,7 +21,7 @@ static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) { switch (prop) { case VIEW_PROP_TITLE: return view->wlr_wl_shell_surface->title; - case VIEW_PROP_APP_ID: + case VIEW_PROP_CLASS: return view->wlr_wl_shell_surface->class; default: return NULL;