Improve OS X IME candidate window placement

master
Yoshiki Shibukawa ago%!(EXTRA string=9 years) committed by Camilla Berglund
parent 59dbd3b6ce
commit e7bb03d8e7
  1. 1
      README.md
  2. 5
      src/cocoa_window.m

@ -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…
Cancel
Save