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

Function flashCurrentWindow

src/main.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void flashCurrentWindow(std::string) {
29 static auto* const PHYPRFOCUSENABLED = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprfocus:enabled")->intValue;
30
31 if (!*PHYPRFOCUSENABLED)
32 return;
33
34 if(g_pPreviouslyFocusedWindow == nullptr)
35 return;
36
37 flashWindow(g_pPreviouslyFocusedWindow);
38}
39
40static void onActiveWindowChange(void* self, std::any data) {
41 try {

Callers

nothing calls this directly

Calls 1

flashWindowFunction · 0.85

Tested by

no test coverage detected