| 26 | } |
| 27 | |
| 28 | void 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 | |
| 40 | static void onActiveWindowChange(void* self, std::any data) { |
| 41 | try { |
nothing calls this directly
no test coverage detected