mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-28 19:35:41 +00:00
Fix dock focus
This commit is contained in:
@@ -72,6 +72,8 @@ public class TerminalDockView {
|
||||
|
||||
public synchronized void trackTerminal(ControllableTerminalSession terminal, boolean dock) {
|
||||
if (viewActive && dock && viewBounds != null) {
|
||||
terminal.own();
|
||||
|
||||
// Bring main window to foreground since initial launch
|
||||
NativeWinWindowControl.MAIN_WINDOW.activate();
|
||||
|
||||
@@ -79,11 +81,6 @@ public class TerminalDockView {
|
||||
// We always want to show the terminal though
|
||||
terminal.show();
|
||||
|
||||
terminal.own();
|
||||
|
||||
// Bring terminal window in front of main window
|
||||
terminal.focus();
|
||||
|
||||
terminal.updatePosition(windowBoundsFunction.apply(viewBounds));
|
||||
updateCustomBounds();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user