aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-22 10:54:15 +0200
committerGitHub <noreply@github.com>2018-04-22 10:54:15 +0200
commit12bf39a715b23b572e3ce213ee1aef8c32ebbc13 (patch)
treec372a2212a94bc282876c41649c8c18204ff0761 /xwayland
parent704bc490a7d1ce581ba24ce833919036374293f9 (diff)
parent3bce5dfc9f288ffcfa045ae0a80bcc015d0966c5 (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.c3
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(