mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-28 19:35:41 +00:00
[stage]
This commit is contained in:
@@ -56,7 +56,7 @@ public class AskpassExchangeImpl extends AskpassExchange {
|
||||
return;
|
||||
}
|
||||
|
||||
term.get().frontOfMainWindow();
|
||||
term.get().focus();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Vendored
+3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user