mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
Lots of small tweaks (#5960)
This commit is contained in:
@@ -123,8 +123,7 @@ namespace PowerLauncher.Helper
|
||||
return false;
|
||||
}
|
||||
|
||||
RECT appBounds;
|
||||
_ = NativeMethods.GetWindowRect(hWnd, out appBounds);
|
||||
_ = NativeMethods.GetWindowRect(hWnd, out RECT appBounds);
|
||||
|
||||
// for console (ConsoleWindowClass), we have to check for negative dimensions
|
||||
if (windowClass == WINDOW_CLASS_CONSOLE)
|
||||
@@ -181,7 +180,7 @@ namespace PowerLauncher.Helper
|
||||
}
|
||||
else
|
||||
{
|
||||
using (var src = new HwndSource(default(HwndSourceParameters)))
|
||||
using (var src = new HwndSource(default))
|
||||
{
|
||||
matrix = src.CompositionTarget.TransformFromDevice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user