mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 09:59:23 +02:00
Cocoa: fix IME popup window pos on Multi Displays
This commit is contained in:
parent
7f7a01a35b
commit
a4863bb0e3
@ -1144,11 +1144,7 @@ begin
|
|||||||
params.isFirstCall:= not hasMarkedText();
|
params.isFirstCall:= not hasMarkedText();
|
||||||
|
|
||||||
rect:= imeHandler.IMEGetTextBound( params );
|
rect:= imeHandler.IMEGetTextBound( params );
|
||||||
|
LCLToNSRect( rect, NSGlobalScreenHeight, Result );
|
||||||
if isFlipped then
|
|
||||||
Result:= RectToNSRect( rect )
|
|
||||||
else
|
|
||||||
LCLToNSRect( rect, NSScreen.mainScreen.frame.size.height, Result );
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCocoaFullControlEdit.unmarkText;
|
procedure TCocoaFullControlEdit.unmarkText;
|
||||||
|
Loading…
Reference in New Issue
Block a user