This commit is contained in:
Alessandro Autiero
2024-05-20 17:24:00 +02:00
parent 7c2caed16c
commit 9f5590d41c
562 changed files with 3303 additions and 156787 deletions

View File

@@ -17,7 +17,7 @@ auto bdw = bitsdojo_window_configure(BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP);
#include <fcntl.h>
bool IsAlreadyOpen(){
HANDLE hMutex = CreateMutexW(NULL, TRUE, L"RebootLauncherMutex");
HANDLE hMutex = CreateMutexW(NULL, TRUE, L"RebootLauncherNewMutex");
if (hMutex == NULL && GetLastError() == ERROR_ALREADY_EXISTS) {
HWND hwndExisting = FindWindowW(NULL, L"Reboot Launcher");
if (hwndExisting != NULL) {

View File

@@ -121,7 +121,7 @@ bool Win32Window::CreateAndShow(const std::wstring &title,
HWND window = CreateWindow(
window_class,
title.c_str(),
WS_OVERLAPPEDWINDOW,
WS_OVERLAPPED | WS_BORDER | WS_THICKFRAME,
Scale(origin.x, scale_factor),
Scale(origin.y, scale_factor),
Scale(size.width, scale_factor),