mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Merge pull request #2235 from emersion/wlr-surface-role
Update for swaywm/wlroots#1116
This commit is contained in:
commit
106a9eaf11
@ -752,8 +752,9 @@ struct sway_view *view_from_wlr_surface(struct wlr_surface *wlr_surface) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *role = wlr_surface->role ? wlr_surface->role->name : NULL;
|
||||||
wlr_log(WLR_DEBUG, "Surface of unknown type (role %s): %p",
|
wlr_log(WLR_DEBUG, "Surface of unknown type (role %s): %p",
|
||||||
wlr_surface->role, wlr_surface);
|
role, wlr_surface);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user