mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 22:51:58 -07:00
Reset cursor to pointer on focus on interactable deco
This commit is contained in:
@@ -7,18 +7,21 @@
|
||||
#include "../../helpers/Timer.hpp"
|
||||
#include "InputMethodRelay.hpp"
|
||||
|
||||
enum eClickBehaviorMode {
|
||||
enum eClickBehaviorMode
|
||||
{
|
||||
CLICKMODE_DEFAULT = 0,
|
||||
CLICKMODE_KILL
|
||||
};
|
||||
|
||||
enum eMouseBindMode {
|
||||
enum eMouseBindMode
|
||||
{
|
||||
MBIND_INVALID = -1,
|
||||
MBIND_MOVE = 0,
|
||||
MBIND_RESIZE
|
||||
};
|
||||
|
||||
enum eBorderIconDirection {
|
||||
enum eBorderIconDirection
|
||||
{
|
||||
BORDERICON_NONE,
|
||||
BORDERICON_UP,
|
||||
BORDERICON_DOWN,
|
||||
@@ -210,6 +213,14 @@ class CInputManager {
|
||||
void setBorderCursorIcon(eBorderIconDirection);
|
||||
void setCursorIconOnBorder(CWindow* w);
|
||||
|
||||
// cursor surface
|
||||
struct cursorSI {
|
||||
wlr_surface* pSurface = nullptr;
|
||||
Vector2D vHotspot;
|
||||
bool bUsed = false;
|
||||
} cursorSurfaceInfo;
|
||||
DYNLISTENER(CursorSurfaceDestroy);
|
||||
|
||||
friend class CKeybindManager;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user