| 19 | std::unordered_map<std::string, std::unique_ptr<IFocusAnimation>> g_mAnimations; |
| 20 | |
| 21 | void flashWindow(CWindow* pWindow) { |
| 22 | auto* const PTYPE = g_bMouseWasPressed ? &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprfocus:mouse_focus_animation")->strValue |
| 23 | : &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprfocus:keyboard_focus_animation")->strValue; |
| 24 | |
| 25 | g_mAnimations[*PTYPE]->onWindowFocus(pWindow, PHANDLE); |
| 26 | } |
| 27 | |
| 28 | void flashCurrentWindow(std::string) { |
| 29 | static auto* const PHYPRFOCUSENABLED = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprfocus:enabled")->intValue; |
no test coverage detected