all: chase hyprland

This commit is contained in:
Vaxry 2024-05-08 13:48:33 +01:00
parent d716d12213
commit dcbdc9a08d
3 changed files with 36 additions and 36 deletions

View file

@ -58,8 +58,8 @@ class CHyprBar : public IHyprWindowDecoration {
void onMouseMove(Vector2D coords);
CBox assignedBoxGlobal();
std::shared_ptr<HOOK_CALLBACK_FN> m_pMouseButtonCallback;
std::shared_ptr<HOOK_CALLBACK_FN> m_pMouseMoveCallback;
SP<HOOK_CALLBACK_FN> m_pMouseButtonCallback;
SP<HOOK_CALLBACK_FN> m_pMouseMoveCallback;
std::string m_szLastTitle;

View file

@ -68,10 +68,10 @@ class COverview {
bool closing = false;
std::shared_ptr<HOOK_CALLBACK_FN> mouseMoveHook;
std::shared_ptr<HOOK_CALLBACK_FN> mouseButtonHook;
std::shared_ptr<HOOK_CALLBACK_FN> touchMoveHook;
std::shared_ptr<HOOK_CALLBACK_FN> touchUpHook;
SP<HOOK_CALLBACK_FN> mouseMoveHook;
SP<HOOK_CALLBACK_FN> mouseButtonHook;
SP<HOOK_CALLBACK_FN> touchMoveHook;
SP<HOOK_CALLBACK_FN> touchUpHook;
bool swipe = false;
bool swipeWasCommenced = false;

View file

@ -46,7 +46,7 @@ class CTrail : public IHyprWindowDecoration {
virtual void damageEntire();
private:
std::shared_ptr<HOOK_CALLBACK_FN> pTickCb;
SP<HOOK_CALLBACK_FN> pTickCb;
void onTick();
std::deque<std::pair<box, std::chrono::system_clock::time_point>> m_dLastGeoms;