mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Improve OS X IME candidate window placement
This commit is contained in:
parent
59dbd3b6ce
commit
e7bb03d8e7
@ -230,6 +230,7 @@ skills.
|
|||||||
- SephiRok
|
- SephiRok
|
||||||
- Steve Sexton
|
- Steve Sexton
|
||||||
- Systemcluster
|
- Systemcluster
|
||||||
|
- Yoshiki Shibukawa
|
||||||
- Dmitri Shuralyov
|
- Dmitri Shuralyov
|
||||||
- Daniel Skorupski
|
- Daniel Skorupski
|
||||||
- Bradley Smith
|
- Bradley Smith
|
||||||
|
@ -662,7 +662,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||||||
- (NSRect)firstRectForCharacterRange:(NSRange)range
|
- (NSRect)firstRectForCharacterRange:(NSRange)range
|
||||||
actualRange:(NSRangePointer)actualRange
|
actualRange:(NSRangePointer)actualRange
|
||||||
{
|
{
|
||||||
return NSMakeRect(0, 0, 0, 0);
|
int x, y;
|
||||||
|
_glfwPlatformGetWindowPos(window, &x, &y);
|
||||||
|
const NSRect contentRect = [window->ns.view frame];
|
||||||
|
return NSMakeRect(x, transformY(y+contentRect.size.height), 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)insertText:(id)string replacementRange:(NSRange)replacementRange
|
- (void)insertText:(id)string replacementRange:(NSRange)replacementRange
|
||||||
|
Loading…
Reference in New Issue
Block a user