#88 re-ActivateWindow after minimize of previous window - as sometimes windows leaves the active window pointer on wrong window

This commit is contained in:
Izakbar
2025-05-21 13:00:32 +01:00
parent d5527c1392
commit ba308616d3

View File

@@ -566,6 +566,11 @@ namespace EveOPreview.Services
if (this._configuration.MinimizeInactiveClients && !this._configuration.IsPriorityClient(this._activeClient.Title)) if (this._configuration.MinimizeInactiveClients && !this._configuration.IsPriorityClient(this._activeClient.Title))
{ {
this._windowManager.MinimizeWindow(this._activeClient.Handle, this._configuration.WindowsAnimationStyle, false); this._windowManager.MinimizeWindow(this._activeClient.Handle, this._configuration.WindowsAnimationStyle, false);
#if LINUX
this._windowManager.ActivateWindow(foregroundClientHandle, foregroundClientTitle);
#else
this._windowManager.ActivateWindow(foregroundClientHandle, this._configuration.WindowsAnimationStyle);
#endif
} }
this._activeClient = (foregroundClientHandle, foregroundClientTitle); this._activeClient = (foregroundClientHandle, foregroundClientTitle);