mirror of
https://github.com/labwc/labwc.git
synced 2026-03-11 05:33:49 -04:00
Chase wlroots: convert to try_from
Chases: 711a1a3ed42150fdbc716e80719d482006075f69 xdg-shell: convert to try_from Chases: f9bd416d4156942ce3951a6c5cf9f81a3cf4a3dd layer-shell-v1: convert to try_from Chases: fbf5982e3838ee28b5345e98832f6956c402b225 xwayland/xwm: introduce wlr_xwayland_surface_try_from_wlr_surface()
This commit is contained in:
parent
d0b24f73d7
commit
b5220a723e
9 changed files with 27 additions and 33 deletions
|
|
@ -579,12 +579,12 @@ xdg_activation_handle_request(struct wl_listener *listener, void *data)
|
|||
{
|
||||
const struct wlr_xdg_activation_v1_request_activate_event *event = data;
|
||||
|
||||
if (!wlr_surface_is_xdg_surface(event->surface)) {
|
||||
struct wlr_xdg_surface *xdg_surface =
|
||||
wlr_xdg_surface_try_from_wlr_surface(event->surface);
|
||||
if (!xdg_surface) {
|
||||
return;
|
||||
}
|
||||
struct wlr_xdg_surface *xdg_surface =
|
||||
wlr_xdg_surface_from_wlr_surface(event->surface);
|
||||
struct view *view = xdg_surface ? xdg_surface->data : NULL;
|
||||
struct view *view = xdg_surface->data;
|
||||
|
||||
if (!view) {
|
||||
wlr_log(WLR_INFO, "Not activating surface - no view attached to surface");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue