diff options
Diffstat (limited to 'xwayland/xwm.c')
| -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(  | 
