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

Function flashWindow

src/main.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19std::unordered_map<std::string, std::unique_ptr<IFocusAnimation>> g_mAnimations;
20
21void 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
28void flashCurrentWindow(std::string) {
29 static auto* const PHYPRFOCUSENABLED = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprfocus:enabled")->intValue;

Callers 2

flashCurrentWindowFunction · 0.85
onActiveWindowChangeFunction · 0.85

Calls 1

onWindowFocusMethod · 0.45

Tested by

no test coverage detected