mirror of
https://github.com/glfw/glfw.git
synced 2024-11-29 07:34:35 +00:00
Improve OS X IME candidate window placement
This commit is contained in:
parent
59dbd3b6ce
commit
e7bb03d8e7
@ -230,6 +230,7 @@ skills.
|
||||
- SephiRok
|
||||
- Steve Sexton
|
||||
- Systemcluster
|
||||
- Yoshiki Shibukawa
|
||||
- Dmitri Shuralyov
|
||||
- Daniel Skorupski
|
||||
- Bradley Smith
|
||||
|
@ -662,7 +662,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
||||
- (NSRect)firstRectForCharacterRange:(NSRange)range
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user