This commit is contained in:
crschnick 2024-11-08 09:09:03 +00:00
parent 18409aa646
commit 748e79ad0b
6 changed files with 17 additions and 2 deletions

View file

@ -56,7 +56,7 @@ public class AskpassExchangeImpl extends AskpassExchange {
return;
}
term.get().frontOfMainWindow();
term.get().focus();
}
@Override

View file

@ -1,5 +1,6 @@
package io.xpipe.app.core.window;
import io.sentry.protocol.User;
import io.xpipe.app.util.Rect;
import javafx.stage.Window;
@ -119,6 +120,10 @@ public class NativeWinWindowControl {
return r.longValue() == 0;
}
public void activate() {
User32.INSTANCE.SetForegroundWindow(windowHandle);
}
public boolean setWindowBackdrop(DwmSystemBackDropType backdrop) {
var r = Dwm.INSTANCE.DwmSetWindowAttribute(
windowHandle,

View file

@ -26,6 +26,8 @@ public abstract class TerminalViewInstance {
public abstract void frontOfMainWindow();
public abstract void focus();
public abstract void updatePosition(Rect bounds);
public abstract void close();

View file

@ -45,6 +45,11 @@ public final class WindowsTerminalViewInstance extends TerminalViewInstance {
this.control.defaultOrder();
}
@Override
public void focus() {
this.control.activate();
}
@Override
public void updatePosition(Rect bounds) {
control.move(bounds);

View file

@ -27,6 +27,9 @@ There's now a new mechanism in place for checking for security updates separatel
- The settings menu now shows a restart button when a setting has been change that requires a restart to apply
- There is now an intro to scripts to provide some more information before using scripts
- Add ability to enable agent forwarding when using the SSH-Agent for identities
- Closing a terminal while a session is loading will now cancel the launch (on Windows for now)
- A newly opened terminal will now regain focus after any password prompt was entered in xpipe
- You can now override a VM IP if you're using an advanced networking setup
## Fixes

View file

@ -1 +1 @@
13.0-8
13.0-9