MCPcopy Create free account
hub / github.com/VortexCoyote/hyprfocus / onWindowFocus

Method onWindowFocus

src/IFocusAnimation.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void IFocusAnimation::onWindowFocus(CWindow* pWindow, HANDLE pHandle) {
26 m_sFocusInAnimConfig.internalBezier = HyprlandAPI::getConfigValue(pHandle, configPrefix() + "in_bezier")->strValue;
27 m_sFocusInAnimConfig.internalSpeed = HyprlandAPI::getConfigValue(pHandle, configPrefix() + "in_speed")->floatValue;
28
29 m_sFocusOutAnimConfig.internalBezier = HyprlandAPI::getConfigValue(pHandle, configPrefix() + "out_bezier")->strValue;
30 m_sFocusOutAnimConfig.internalSpeed = HyprlandAPI::getConfigValue(pHandle, configPrefix() + "out_speed")->floatValue;
31}
32
33void IFocusAnimation::addConfigValue(HANDLE pHandle, std::string name, SConfigValue sValue) {
34 HyprlandAPI::addConfigValue(pHandle, configPrefix() + name, sValue);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected