mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -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
|
|
@ -63,7 +63,7 @@ handle_new_server_decoration(struct wl_listener *listener, void *data)
|
|||
struct kde_deco *kde_deco = znew(*kde_deco);
|
||||
kde_deco->wlr_kde_decoration = wlr_deco;
|
||||
|
||||
if (wlr_surface_is_xdg_surface(wlr_deco->surface)) {
|
||||
if (wlr_deco->surface) {
|
||||
/*
|
||||
* Depending on the application event flow, the supplied
|
||||
* wlr_surface may already have been set up as a xdg_surface
|
||||
|
|
@ -72,7 +72,7 @@ handle_new_server_decoration(struct wl_listener *listener, void *data)
|
|||
* kde_server_decoration_set_view().
|
||||
*/
|
||||
struct wlr_xdg_surface *xdg_surface =
|
||||
wlr_xdg_surface_from_wlr_surface(wlr_deco->surface);
|
||||
wlr_xdg_surface_try_from_wlr_surface(wlr_deco->surface);
|
||||
if (xdg_surface && xdg_surface->data) {
|
||||
kde_deco->view = (struct view *)xdg_surface->data;
|
||||
handle_mode(&kde_deco->mode, wlr_deco);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue