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

Method init

src/Flash.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <hyprland/src/plugins/PluginAPI.hpp>
7
8void CFlash::init(HANDLE pHandle, std::string animationName) {
9 IFocusAnimation::init(pHandle, animationName);
10 addConfigValue(pHandle, "flash_opacity", SConfigValue{.floatValue = 0.5f});
11}
12
13void CFlash::onWindowFocus(CWindow* pWindow, HANDLE pHandle) {
14 IFocusAnimation::onWindowFocus(pWindow, pHandle);

Callers 1

PLUGIN_INITFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected