mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
Update wlroots API
Breaking changes in wlr_xdg_shell_v6 and wlr_renderer have been made upstream.
This commit is contained in:
parent
9823a7c6c8
commit
01beee5826
4 changed files with 7 additions and 7 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/render.h>
|
||||
#include <wlr/render/wlr_renderer.h>
|
||||
#include <wlr/types/wlr_matrix.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/types/wlr_surface.h>
|
||||
|
|
@ -152,8 +152,8 @@ static void output_frame_view(swayc_t *view, void *data) {
|
|||
|
||||
switch (sway_view->type) {
|
||||
case SWAY_XDG_SHELL_V6_VIEW: {
|
||||
int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x;
|
||||
int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry->y;
|
||||
int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry.x;
|
||||
int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry.y;
|
||||
render_surface(surface, wlr_output, &output->last_frame,
|
||||
view->x - window_offset_x,
|
||||
view->y - window_offset_y,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue