diff options
author | 2018-03-27 15:54:34 -0400 | |
---|---|---|
committer | 2018-03-27 15:54:34 -0400 | |
commit | 53df5889d511dbcc8c05cfa5837da0f1ef30fd4b (patch) | |
tree | 715b805d352701a0ed79c696152197f1ef501bfd /sway | |
parent | Update API to match latest wlroots (diff) | |
download | sway-53df5889d511dbcc8c05cfa5837da0f1ef30fd4b.tar.gz sway-53df5889d511dbcc8c05cfa5837da0f1ef30fd4b.tar.zst sway-53df5889d511dbcc8c05cfa5837da0f1ef30fd4b.zip |
Fix lingering xdg shell issues
Diffstat (limited to 'sway')
-rw-r--r-- | sway/desktop/xdg_shell_v6.c | 6 |
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) { | |||
22 | } | 22 | } |
23 | switch (prop) { | 23 | switch (prop) { |
24 | case VIEW_PROP_TITLE: | 24 | case VIEW_PROP_TITLE: |
25 | return view->wlr_xdg_surface_v6->title; | 25 | return view->wlr_xdg_surface_v6->toplevel->title; |
26 | case VIEW_PROP_APP_ID: | 26 | case VIEW_PROP_APP_ID: |
27 | return view->wlr_xdg_surface_v6->app_id; | 27 | return view->wlr_xdg_surface_v6->toplevel->app_id; |
28 | default: | 28 | default: |
29 | return NULL; | 29 | return NULL; |
30 | } | 30 | } |
@@ -100,7 +100,7 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) { | |||
100 | } | 100 | } |
101 | 101 | ||
102 | wlr_log(L_DEBUG, "New xdg_shell_v6 toplevel title='%s' app_id='%s'", | 102 | wlr_log(L_DEBUG, "New xdg_shell_v6 toplevel title='%s' app_id='%s'", |
103 | xdg_surface->title, xdg_surface->app_id); | 103 | xdg_surface->toplevel->title, xdg_surface->toplevel->app_id); |
104 | wlr_xdg_surface_v6_ping(xdg_surface); | 104 | wlr_xdg_surface_v6_ping(xdg_surface); |
105 | 105 | ||
106 | struct sway_xdg_surface_v6 *sway_surface = | 106 | struct sway_xdg_surface_v6 *sway_surface = |