mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Update API to match latest wlroots
This commit is contained in:
parent
d5a8a879b6
commit
cbb2e3308e
@ -187,7 +187,7 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
|||||||
|
|
||||||
int buffer_age = -1;
|
int buffer_age = -1;
|
||||||
wlr_output_make_current(wlr_output, &buffer_age);
|
wlr_output_make_current(wlr_output, &buffer_age);
|
||||||
wlr_renderer_begin(server->renderer, wlr_output);
|
wlr_renderer_begin(server->renderer, wlr_output->width, wlr_output->height);
|
||||||
|
|
||||||
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
struct sway_seat *seat = input_manager_current_seat(input_manager);
|
||||||
swayc_t *focus = sway_seat_get_focus_inactive(seat, soutput->swayc);
|
swayc_t *focus = sway_seat_get_focus_inactive(seat, soutput->swayc);
|
||||||
|
@ -63,7 +63,7 @@ static void close(struct sway_view *view) {
|
|||||||
}
|
}
|
||||||
struct wlr_xdg_surface_v6 *surface = view->wlr_xdg_surface_v6;
|
struct wlr_xdg_surface_v6 *surface = view->wlr_xdg_surface_v6;
|
||||||
if (surface->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL) {
|
if (surface->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL) {
|
||||||
wlr_xdg_toplevel_v6_send_close(surface);
|
wlr_xdg_surface_v6_send_close(surface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user