mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fix for tooltip focus stealing
This commit is contained in:
parent
b5ceaf9a4e
commit
e1d5efe4de
1 changed files with 8 additions and 2 deletions
|
@ -571,12 +571,16 @@ class WinNativeConsoleProvider : ConsoleProvider
|
||||||
if (processId > 0)
|
if (processId > 0)
|
||||||
AttachConsole(processId);
|
AttachConsole(processId);
|
||||||
else*/
|
else*/
|
||||||
AllocConsole();
|
|
||||||
|
AllocConsole();
|
||||||
|
|
||||||
var window = GetConsoleWindow();
|
var window = GetConsoleWindow();
|
||||||
|
|
||||||
if (mHideNativeConsole)
|
if ((mHideNativeConsole) && (window != default))
|
||||||
|
{
|
||||||
Windows.SetWindowPos(window, default, 0, 0, 0, 0, 0x290 /* SWP_NOACTIVATE | SWP_NOREPOSITION | SWP_HIDEWINDOW */);
|
Windows.SetWindowPos(window, default, 0, 0, 0, 0, 0x290 /* SWP_NOACTIVATE | SWP_NOREPOSITION | SWP_HIDEWINDOW */);
|
||||||
|
gApp.mMainWindow.SetForeground();
|
||||||
|
}
|
||||||
|
|
||||||
//ResizeComponents();
|
//ResizeComponents();
|
||||||
#endif
|
#endif
|
||||||
|
@ -596,6 +600,8 @@ class WinNativeConsoleProvider : ConsoleProvider
|
||||||
FreeConsole();
|
FreeConsole();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//gApp.mMainWindow.SetForeground();
|
||||||
|
|
||||||
mCmdSpawn?.Kill();
|
mCmdSpawn?.Kill();
|
||||||
DeleteAndNullify!(mCmdSpawn);
|
DeleteAndNullify!(mCmdSpawn);
|
||||||
mExecSpawn?.Kill();
|
mExecSpawn?.Kill();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue