aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-27 15:54:34 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-27 15:54:34 -0400
commit53df5889d511dbcc8c05cfa5837da0f1ef30fd4b (patch)
tree715b805d352701a0ed79c696152197f1ef501bfd /sway
parentcbb2e3308e66c2e5b1852c7475e3f40a5bbdca1c (diff)
Fix lingering xdg shell issues
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/xdg_shell_v6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 7b550b30..7bc17149 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -22,9 +22,9 @@ static const char *get_prop(struct sway_view *view, enum sway_view_prop prop) {
}
switch (prop) {
case VIEW_PROP_TITLE:
- return view->wlr_xdg_surface_v6->title;
+ return view->wlr_xdg_surface_v6->toplevel->title;
case VIEW_PROP_APP_ID:
- return view->wlr_xdg_surface_v6->app_id;
+ return view->wlr_xdg_surface_v6->toplevel->app_id;
default:
return NULL;
}
@@ -100,7 +100,7 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {
}
wlr_log(L_DEBUG, "New xdg_shell_v6 toplevel title='%s' app_id='%s'",
- xdg_surface->title, xdg_surface->app_id);
+ xdg_surface->toplevel->title, xdg_surface->toplevel->app_id);
wlr_xdg_surface_v6_ping(xdg_surface);
struct sway_xdg_surface_v6 *sway_surface =