diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-22 10:54:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 10:54:15 +0200 |
commit | 12bf39a715b23b572e3ce213ee1aef8c32ebbc13 (patch) | |
tree | c372a2212a94bc282876c41649c8c18204ff0761 /xwayland | |
parent | 704bc490a7d1ce581ba24ce833919036374293f9 (diff) | |
parent | 3bce5dfc9f288ffcfa045ae0a80bcc015d0966c5 (diff) |
Merge pull request #885 from emersion/remove-surface-subsurface
Remove wlr_surface::subsurface, add wlr_subcompositor
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 77dc0797..599006ae 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -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( |