aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-09 22:59:57 +0100
committerDrew DeVault <sir@cmpwn.com>2018-07-11 18:37:17 -0400
commit60fdb71a1f65d3c4f8516b4216f08a2347f1c3b7 (patch)
tree0ee0ea4ce75b28f278e830b9a86de48ba0474e03 /sway/tree
parent2bc18d8cf77c2a4aa47453c4177fdaac29736db8 (diff)
Updates for swaywm/wlroots#1116
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index f99def6c..20cbaf1c 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -752,8 +752,9 @@ struct sway_view *view_from_wlr_surface(struct wlr_surface *wlr_surface) {
return NULL;
}
+ const char *role = wlr_surface->role ? wlr_surface->role->name : NULL;
wlr_log(WLR_DEBUG, "Surface of unknown type (role %s): %p",
- wlr_surface->role, wlr_surface);
+ role, wlr_surface);
return NULL;
}