mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 12:00:02 +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);
|
Result := Assigned(cbi);
|
||||||
if not Result then Exit;
|
if not Result then Exit;
|
||||||
|
|
||||||
Result:= NSObject(handle).isKindOfClass(TCocoaWindowContent);
|
obj := cbi.GetCallbackObject;
|
||||||
|
Result := (obj is TLCLCommonCallback)
|
||||||
|
and (HWND(TLCLCommonCallback(obj).HandleFrame)=handle);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Result := False;
|
Result := False;
|
||||||
|
Loading…
Reference in New Issue
Block a user