Merge pull request #885 from emersion/remove-surface-subsurface

Remove wlr_surface::subsurface, add wlr_subcompositor
This commit is contained in:
Drew DeVault 2018-04-22 10:54:15 +02:00 committed by GitHub
commit 12bf39a715
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 162 additions and 131 deletions

View file

@ -80,7 +80,8 @@ const char *atom_map[ATOM_LAST] = {
const char *wlr_xwayland_surface_role = "wlr_xwayland_surface";
bool wlr_surface_is_xwayland_surface(struct wlr_surface *surface) {
return strcmp(surface->role, wlr_xwayland_surface_role) == 0;
return surface->role != NULL &&
strcmp(surface->role, wlr_xwayland_surface_role) == 0;
}
struct wlr_xwayland_surface *wlr_xwayland_surface_from_wlr_surface(