mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-26 12:27:09 +00:00
core/surface/buffer: Buffer lock/release fixes (#7110)
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user