mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
unsigned monitor number
This commit is contained in:
@@ -128,7 +128,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, LPSTR cmdLine, int cm
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto windowMonitor = MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY);
|
auto windowMonitor = MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY);
|
||||||
int monitorNumber = 0;
|
unsigned int monitorNumber = 0;
|
||||||
for (const auto& monitor : project.monitors)
|
for (const auto& monitor : project.monitors)
|
||||||
{
|
{
|
||||||
if (monitor.monitor == windowMonitor)
|
if (monitor.monitor == windowMonitor)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ struct Project
|
|||||||
bool isMinimized{};
|
bool isMinimized{};
|
||||||
bool isMaximized{};
|
bool isMaximized{};
|
||||||
Position position{};
|
Position position{};
|
||||||
int monitor{};
|
unsigned int monitor{};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Monitor
|
struct Monitor
|
||||||
|
|||||||
Reference in New Issue
Block a user