Drop wlr_client_buffer usage

This commit is contained in:
Alexander Orzechowski 2023-04-19 15:17:31 +02:00
parent 33cfdbe886
commit 4bec692734
7 changed files with 42 additions and 13 deletions

View file

@ -1,10 +1,13 @@
#ifndef _SWAY_SURFACE_H
#define _SWAY_SURFACE_H
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_raster.h>
struct sway_surface {
struct wlr_surface *wlr_surface;
struct wlr_raster *raster;
struct wl_listener commit;
struct wl_listener destroy;
/**

View file

@ -2,6 +2,7 @@
#define _SWAY_VIEW_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_raster.h>
#include "sway/config.h"
#if HAVE_XWAYLAND
#include <wlr/xwayland.h>
@ -57,7 +58,7 @@ struct sway_view_impl {
};
struct sway_saved_buffer {
struct wlr_client_buffer *buffer;
struct wlr_raster *raster;
int x, y;
int width, height;
enum wl_output_transform transform;