mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 17:59:59 +02:00
Cocoa: TCocoaWidgetSet.IsWindow should return true for any widget handle and not just TCocoaWindowContent.
This commit is contained in:
parent
759b07932a
commit
0fac0c3e01
@ -1526,7 +1526,9 @@ begin
|
||||
Result := Assigned(cbi);
|
||||
if not Result then Exit;
|
||||
|
||||
Result:= NSObject(handle).isKindOfClass(TCocoaWindowContent);
|
||||
obj := cbi.GetCallbackObject;
|
||||
Result := (obj is TLCLCommonCallback)
|
||||
and (HWND(TLCLCommonCallback(obj).HandleFrame)=handle);
|
||||
end
|
||||
else
|
||||
Result := False;
|
||||
|
Loading…
Reference in New Issue
Block a user