From d0fe51fd03de6b031d4e07223879402c2eee845c Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 6 Jun 2025 11:03:17 +0200 Subject: [PATCH] lcl: fixed snapping not allocating handles --- lcl/include/windowmagnet.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/include/windowmagnet.inc b/lcl/include/windowmagnet.inc index a849d92494..48062712dc 100644 --- a/lcl/include/windowmagnet.inc +++ b/lcl/include/windowmagnet.inc @@ -204,7 +204,7 @@ begin frm:= Screen.CustomForms[fi]; if not frm.Visible then continue; if frm.WindowState=wsMinimized then continue; - if frm.HandleAllocated then continue; + if not frm.HandleAllocated then continue; if frm.Handle = WindowPos.hwnd then continue; if not frm.SnapOptions.SnapFormTarget then continue; if GetWindowRect(frm.Handle, br) = 0 then continue;