mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-10-29 11:48:42 +00:00
parent
1e57d4e54d
commit
a2157f8da7
@ -78,6 +78,11 @@ std::string CHyprBar::getDisplayName() {
|
||||
}
|
||||
|
||||
bool CHyprBar::inputIsValid() {
|
||||
static auto* const PENABLED = (Hyprlang::INT* const*)HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:enabled")->getDataStaticPtr();
|
||||
|
||||
if (!**PENABLED)
|
||||
return false;
|
||||
|
||||
if (!m_pWindow->m_workspace || !m_pWindow->m_workspace->isVisible() || !g_pInputManager->m_exclusiveLSes.empty() ||
|
||||
(g_pSeatManager->m_seatGrab && !g_pSeatManager->m_seatGrab->accepts(m_pWindow->m_wlSurface->resource())))
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user