mirror of
https://github.com/swaywm/sway.git
synced 2026-04-09 08:21:26 -04:00
Convert to *_try_from_wlr_surface()
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3991
This commit is contained in:
parent
b31e97e55d
commit
9959e6b8dc
5 changed files with 23 additions and 40 deletions
|
|
@ -6,12 +6,8 @@ void xdg_activation_v1_handle_request_activate(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)) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct wlr_xdg_surface *xdg_surface =
|
||||
wlr_xdg_surface_from_wlr_surface(event->surface);
|
||||
wlr_xdg_surface_try_from_wlr_surface(event->surface);
|
||||
if (xdg_surface == NULL) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue