message: Use ConvertRectFromScreen instead of convertPointFromScreen as it's not available on macOS 10.11 (mac),
diff: @@ -210,7 +210,8 @@ extern void *ctx;
  - (void)focusFieldName
  {
  NSPoint globalLocation = [ NSEvent mouseLocation ];
  - NSPoint windowLocation = [self.window convertPointFromScreen:globalLocation];
  + NSRect rect = [[self window] convertRectFromScreen:NSMakeRect(globalLocation.x, globalLocation.y, 0, 0)];
  + NSPoint windowLocation = rect.origin;
  NSPoint mouseLocation = [ self convertPoint:windowLocation fromView:nil ];
  [self setFocused];
  