Skip to content

Commit 52396b3

Browse files
Fix Aero Snap not working. Fixes ApoorvaJ#11.
1 parent 5e5c465 commit 52396b3

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/papaya_platform_win32.cpp

+16-13
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,10 @@ internal LRESULT CALLBACK Win32MainWindowCallback(HWND Window, UINT Message, WPA
292292
}
293293
} break;
294294

295-
// WM_NCHITTEST
295+
case WM_NCCALCSIZE:
296+
{
297+
return 0;
298+
} break;
296299

297300
case WM_NCHITTEST:
298301
{
@@ -416,18 +419,18 @@ int CALLBACK WinMain(HINSTANCE Instance, HINSTANCE PrevInstance, LPSTR CommandLi
416419

417420
Window =
418421
CreateWindowExA(
419-
0, // Extended window style
420-
WindowClass.lpszClassName, // Class name,
421-
"Papaya", // Name,
422-
WS_POPUP | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_VISIBLE, // Window style
423-
CW_USEDEFAULT, // X,
424-
CW_USEDEFAULT, // Y,
425-
CW_USEDEFAULT, // Width,
426-
CW_USEDEFAULT, // Height,
427-
0, // Window Parent,
428-
0, // Menu,
429-
Instance, // Handle to the instance,
430-
0); // lpParam
422+
0, // Extended window style
423+
WindowClass.lpszClassName, // Class name,
424+
"Papaya", // Name,
425+
WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_VISIBLE, // Window style
426+
CW_USEDEFAULT, // X,
427+
CW_USEDEFAULT, // Y,
428+
CW_USEDEFAULT, // Width,
429+
CW_USEDEFAULT, // Height,
430+
0, // Window Parent,
431+
0, // Menu,
432+
Instance, // Handle to the instance,
433+
0); // lpParam
431434

432435
if (!Window)
433436
{

0 commit comments

Comments
 (0)