mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-05-05 02:07:58 +02:00
parent
1e57d4e54d
commit
a2157f8da7
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue