mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 小优化
This commit is contained in:
parent
188ef8eb57
commit
eb1fffaf65
2 changed files with 1 additions and 4 deletions
|
|
@ -3,9 +3,6 @@
|
|||
#include "DeviceResources.h"
|
||||
#include "Logger.h"
|
||||
#include "ScalingWindow.h"
|
||||
#include "Win32Helper.h"
|
||||
#include <dcomp.h>
|
||||
#include <dwmapi.h>
|
||||
|
||||
namespace Magpie {
|
||||
|
||||
|
|
|
|||
|
|
@ -1984,7 +1984,7 @@ winrt::fire_and_forget ScalingWindow::_UpdateFocusStateAsync() const noexcept {
|
|||
}
|
||||
}
|
||||
|
||||
if (isForeMovable && hwndFore) {
|
||||
if (isForeMovable && hwndFore && GetForegroundWindow() == hwndFore) {
|
||||
SetWindowPos(hwndFore, HWND_TOP, 0, 0, 0, 0, SWP_NO_ACTIVATE_MOVE_SIZE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue