mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2026-08-18 02:58:43 +00:00
borderspp: avoid adding multiple borders when reopening windows (#667)
This commit is contained in:
@ -19,6 +19,9 @@ APICALL EXPORT std::string PLUGIN_API_VERSION() {
|
||||
}
|
||||
|
||||
static void onNewWindow(PHLWINDOW window) {
|
||||
if (std::ranges::any_of(window->m_windowDecorations, [](const auto& d) { return d->getDisplayName() == "Borders++"; }))
|
||||
return;
|
||||
|
||||
HyprlandAPI::addWindowDecoration(PHANDLE, window, makeUnique<CBordersPlusPlus>(window));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user