Merge pull request #2235 from emersion/wlr-surface-role

Update for swaywm/wlroots#1116
This commit is contained in:
Drew DeVault 2018-07-11 15:50:04 -07:00 committed by GitHub
commit 106a9eaf11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}