aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 17:00:17 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-03 17:00:17 -0500
commit9afcfd44c425691180a96d4e0d6673e5ac96dcce (patch)
tree35d7016c86a5de5e662ff546ffda3394e34d6ec4
parentwl-shell: dimensions to size (diff)
downloadsway-9afcfd44c425691180a96d4e0d6673e5ac96dcce.tar.gz
sway-9afcfd44c425691180a96d4e0d6673e5ac96dcce.tar.zst
sway-9afcfd44c425691180a96d4e0d6673e5ac96dcce.zip
wl-shell: class instead of app_id
-rw-r--r--include/sway/view.h1
-rw-r--r--sway/desktop/wl_shell.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/view.h b/include/sway/view.h
index f87a8d5b..7aa04794 100644
--- a/include/sway/view.h
+++ b/include/sway/view.h
@@ -42,6 +42,7 @@ enum sway_view_type {
42enum sway_view_prop { 42enum sway_view_prop {
43 VIEW_PROP_TITLE, 43 VIEW_PROP_TITLE,
44 VIEW_PROP_APP_ID, 44 VIEW_PROP_APP_ID,
45 VIEW_PROP_CLASS,
45 VIEW_PROP_INSTANCE, 46 VIEW_PROP_INSTANCE,
46}; 47};
47 48
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c
index e7b42fce..9641b911 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) {
21 switch (prop) { 21 switch (prop) {
22 case VIEW_PROP_TITLE: 22 case VIEW_PROP_TITLE:
23 return view->wlr_wl_shell_surface->title; 23 return view->wlr_wl_shell_surface->title;
24 case VIEW_PROP_APP_ID: 24 case VIEW_PROP_CLASS:
25 return view->wlr_wl_shell_surface->class; 25 return view->wlr_wl_shell_surface->class;
26 default: 26 default:
27 return NULL; 27 return NULL;