Ladybird/AppKit: Bring newly active windows/tabs to the front

This actually actives the underlying tab if needed. This wasn't an issue
previously, as new tabs were always created in already active windows.
But when new windows/tabs are requested from new Ladybird processes, we
need to actually activate those tabs.
This commit is contained in:
Timothy Flynn
2024-04-28 12:27:26 -04:00
committed by Andrew Kaster
parent 606df46e46
commit 7ad7ec3c0c

View File

@@ -184,6 +184,10 @@
}
}
if (activate_tab == Web::HTML::ActivateTab::Yes) {
[[controller window] orderFrontRegardless];
}
[self.managed_tabs addObject:controller];
return controller;
}