hyprland/focus_grab: prevent grab object leak on activate

This commit is contained in:
outfoxxed 2025-05-13 17:07:51 -07:00
parent baa9e5e074
commit 48a56381a6
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -58,7 +58,7 @@ void HyprlandFocusGrab::onProxyConnected() {
}
void HyprlandFocusGrab::tryActivate() {
if (!this->targetActive || this->isActive()) return;
if (!this->targetActive || this->grab) return;
auto* manager = FocusGrabManager::instance();
if (!manager->isActive()) {