mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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:
committed by
Andrew Kaster
parent
606df46e46
commit
7ad7ec3c0c
@@ -184,6 +184,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (activate_tab == Web::HTML::ActivateTab::Yes) {
|
||||
[[controller window] orderFrontRegardless];
|
||||
}
|
||||
|
||||
[self.managed_tabs addObject:controller];
|
||||
return controller;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user