mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
[stage]
This commit is contained in:
parent
18409aa646
commit
748e79ad0b
6 changed files with 17 additions and 2 deletions
|
@ -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);
|
||||
|
|
3
dist/changelogs/13.0.md
vendored
3
dist/changelogs/13.0.md
vendored
|
@ -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
|
||||
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
13.0-8
|
||||
13.0-9
|
||||
|
|
Loading…
Reference in a new issue