core/surface/buffer: Buffer lock/release fixes (#7110)
This commit is contained in:
parent
5489682799
commit
37e1411e8d
27 changed files with 304 additions and 129 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "wayland.hpp"
|
||||
#include "../../helpers/signal/Signal.hpp"
|
||||
#include "../../helpers/math/Math.hpp"
|
||||
#include "../types/SurfaceRole.hpp"
|
||||
|
||||
constexpr const char* HL_SEAT_NAME = "Hyprland";
|
||||
|
||||
|
|
@ -27,6 +28,20 @@ class CWLKeyboardResource;
|
|||
class CWLTouchResource;
|
||||
class CWLSeatResource;
|
||||
|
||||
class CCursorSurfaceRole : public ISurfaceRole {
|
||||
public:
|
||||
virtual eSurfaceRole role() {
|
||||
return SURFACE_ROLE_CURSOR;
|
||||
}
|
||||
|
||||
// gets the current pixel data from a shm surface
|
||||
// will assert if the surface is not a cursor
|
||||
static std::vector<uint8_t>& cursorPixelData(SP<CWLSurfaceResource> surface);
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> cursorShmPixelData;
|
||||
};
|
||||
|
||||
class CWLTouchResource {
|
||||
public:
|
||||
CWLTouchResource(SP<CWlTouch> resource_, SP<CWLSeatResource> owner_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue