zxdg_positioner_v6_destroy(pos);
zxdg_popup_v6_grab(win->zxdg_popup, win->input->wl.seat,
- win->display->serial);
+ wl_display_get_serial(win->display->wl.display));
zxdg_popup_v6_set_user_data(win->zxdg_popup, win);
zxdg_popup_v6_add_listener(win->zxdg_popup, &_zxdg_popup_listener, win);
+
wl_surface_commit(win->surface);
}
xdg_shell_get_xdg_popup(win->display->wl.xdg_shell,
win->surface, win->parent->surface,
input->wl.seat,
- win->display->serial,
+ wl_display_get_serial(win->display->wl.display),
win->geometry.x, win->geometry.y);
if (!win->xdg_popup)
{
{
wl_shell_surface_set_popup(win->wl_shell_surface,
input->wl.seat,
- win->display->serial,
+ wl_display_get_serial(win->display->wl.display),
win->parent->surface,
win->geometry.x,
win->geometry.y, 0);
if (window->zxdg_toplevel)
zxdg_toplevel_v6_move(window->zxdg_toplevel, input->wl.seat,
- window->display->serial);
+ wl_display_get_serial(window->display->wl.display));
else if (window->xdg_surface)
xdg_surface_move(window->xdg_surface, input->wl.seat,
- window->display->serial);
+ wl_display_get_serial(window->display->wl.display));
else if (window->wl_shell_surface)
wl_shell_surface_move(window->wl_shell_surface, input->wl.seat,
- window->display->serial);
+ wl_display_get_serial(window->display->wl.display));
}
EAPI void
if (window->zxdg_toplevel)
zxdg_toplevel_v6_resize(window->zxdg_toplevel, input->wl.seat,
- input->display->serial, location);
+ wl_display_get_serial(window->display->wl.display),
+ location);
else if (window->xdg_surface)
xdg_surface_resize(window->xdg_surface, input->wl.seat,
- input->display->serial, location);
+ wl_display_get_serial(window->display->wl.display),
+ location);
else if (window->wl_shell_surface)
wl_shell_surface_resize(window->wl_shell_surface, input->wl.seat,
- input->display->serial, location);
+ wl_display_get_serial(window->display->wl.display),
+ location);
}
EAPI void