mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-17 07:15:57 +01:00
16 lines
450 B
C++
16 lines
450 B
C++
|
#include "CursorShape.hpp"
|
||
|
#include "hyprlock.hpp"
|
||
|
|
||
|
CCursorShape::CCursorShape(wp_cursor_shape_manager_v1* mgr) : mgr(mgr) {
|
||
|
if (!g_pHyprlock->m_pPointer)
|
||
|
return;
|
||
|
|
||
|
dev = wp_cursor_shape_manager_v1_get_pointer(mgr, g_pHyprlock->m_pPointer);
|
||
|
}
|
||
|
|
||
|
void CCursorShape::setShape(const uint32_t serial, const wp_cursor_shape_device_v1_shape shape) {
|
||
|
if (!dev)
|
||
|
return;
|
||
|
|
||
|
wp_cursor_shape_device_v1_set_shape(dev, serial, shape);
|
||
|
}
|