mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Merge pull request #885 from emersion/remove-surface-subsurface
Remove wlr_surface::subsurface, add wlr_subcompositor
This commit is contained in:
commit
12bf39a715
10 changed files with 162 additions and 131 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue